Remove dead code and validate new polls only once
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped

- Drop the unused polls.show_results_to_participants column (idempotent migration).
- Remove CaptchaInterface::getType(), the unused AjaxView with its layout,
  the empty cell template folder and a redundant setNew() call.
- PollsTable::newPoll() normalises and validates once; the create form used
  to validate the raw input first, so an e-mail address with surrounding
  spaces was rejected although it would have been trimmed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-08 22:12:35 +01:00
1 parent 8b0e82d806
commit 121097f7a7
13 files changed
+78 -102

No files matched your search

-1
View File
@@ -41,7 +41,6 @@ class SlidesController extends AdminAppController
$slide = $this->Slides->newEntity(['type' => $type, 'settings' => Slide::DEFAULT_SETTINGS[$type]], [
'validate' => false,
]);
$slide->setNew(true);
$slide->poll_id = $this->poll->id;
// A quiz is started by the presenter (that also starts its timer).
$slide->is_voting_open = $type !== Slide::TYPE_QUIZ;