Close an open ordering slide on "next" before moving on
CI / Deploy / PHP 8.4 (push) Successful in 1m15s
CI / Deploy / PHP 8.5 (push) Successful in 1m28s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

Forward in the presenter view now reveals the solution first (like the
quiz build steps) instead of skipping straight to the next slide.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-21 09:21:54 +01:00
1 parent 0f91377de3
commit 7fd4a0da8c
3 files changed
+27 -1

No files matched your search

+8 -1
View File
@@ -236,7 +236,8 @@ class AdminController extends AdminAppController
*
* On a Q&A slide that is being discussed, next/prev step through the questions
* first (like builds in presentation software); on a quiz, next starts it and then ends it
* before moving on, prev always goes to the previous slide. While paused, next/prev resume
* before moving on, on an open ordering slide next closes it (reveals the solution),
* prev always goes to the previous slide. While paused, next/prev resume
* the slide that was live before.
*
* Answers with the new state as JSON for XHR requests, otherwise redirects back.
@@ -270,6 +271,12 @@ class AdminController extends AdminAppController
}
}
// Same for an ordering slide: forward first closes the voting (reveals the solution).
if ($current !== null && $current->isOrder() && $action === 'next' && $current->isVotingOpen()) {
(new SlideControlService())->apply($current, 'close');
$action = 'none';
}
switch ($action) {
case 'none':
break;