Make the poll reset only delete responses
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped

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:
gnilebeinandClaude Opus 5.5 committed 2026-11-08 20:34:41 +01:00
1 parent e1b327899f
commit 8644d4bc4a
7 files changed
+37 -54

No files matched your search

+3 -3
View File
@@ -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());
}
+1 -1
View File
@@ -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