Add optional comment field to multiple choice slides
Participants can justify their choice; the comment is stored once in the first response row, rotates on the stage like scale comments and is listed in the admin area and the PDF export. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28bfd535f4
commit
61718ed7c6
14 files changed
+330
-29
No files matched your search
@@ -201,7 +201,7 @@ class SlidesController extends AdminAppController
|
||||
}
|
||||
|
||||
/**
|
||||
* All answers of an open question or the ratings of a scale
|
||||
* All answers of an open question, the ratings of a scale or the comments of a choice slide
|
||||
* (also anonymous/internal feedback, which is never shown on the stage).
|
||||
*
|
||||
* @param string $id Slide id
|
||||
@@ -210,7 +210,7 @@ class SlidesController extends AdminAppController
|
||||
public function answers(string $id): void
|
||||
{
|
||||
$slide = $this->loadSlide($id);
|
||||
if (!in_array($slide->type, [Slide::TYPE_OPEN, Slide::TYPE_SCALE], true)) {
|
||||
if (!in_array($slide->type, [Slide::TYPE_OPEN, Slide::TYPE_SCALE], true) && !$slide->hasComments()) {
|
||||
throw new NotFoundException(__('Folie nicht gefunden.'));
|
||||
}
|
||||
$results = new ResultsService();
|
||||
|
||||
Reference in new issue
Block a user