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
@@ -123,8 +123,8 @@ class AdminController extends AdminAppController
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes all responses of all slides and starts the presentation over,
|
||||
* slides, settings and links are kept (e.g. to run the poll with another group).
|
||||
* Deletes all responses of all slides; slides, settings and the presentation are kept
|
||||
* (e.g. to run the poll with another group).
|
||||
*
|
||||
* @return \Cake\Http\Response|null
|
||||
*/
|
||||
@@ -132,7 +132,7 @@ class AdminController extends AdminAppController
|
||||
{
|
||||
$this->request->allowMethod(['post']);
|
||||
(new ResetService())->poll($this->poll);
|
||||
$this->Flash->success(__('Die Umfrage wurde zurückgesetzt: Alle Antworten sind gelöscht, die Präsentation beginnt wieder bei der ersten Folie.'));
|
||||
$this->Flash->success(__('Alle Antworten wurden gelöscht.'));
|
||||
|
||||
return $this->redirect($this->adminUrl());
|
||||
}
|
||||
|
||||
@@ -138,7 +138,7 @@ class SlidesController extends AdminAppController
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes all responses of a slide and puts it back to its initial state.
|
||||
* Deletes all responses of a slide.
|
||||
*
|
||||
* @param string $id Slide id
|
||||
* @return \Cake\Http\Response|null
|
||||
|
||||
Reference in new issue
Block a user