Make the poll reset only delete responses
The presentation (current slide, pause) and the open/closed state of slides are kept. Only quiz and Q&A slides go back to their start, as the per-slide reset already did before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e1b327899f
commit
8644d4bc4a
7 files changed
+37
-54
No files matched your search
@@ -99,18 +99,6 @@ class Poll extends Entity
|
||||
$this->embed_seen_at = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Back to "not started": no slide live, nothing to resume. Idempotent.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function restart(): void
|
||||
{
|
||||
$this->current_slide_id = null;
|
||||
$this->paused_slide_id = null;
|
||||
$this->embed_seen_at = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return bool Paused after a slide had been live (not: not started yet)
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user