Make "comment without rating" a choice in a comment dropdown
CI / Deploy / PHP 8.5 (push) Successful in 1m13s
CI / Deploy / PHP 8.4 (push) Successful in 1m17s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped

The scale form replaces the comment checkbox with a dropdown: no
comment field, comment with mandatory rating, or comment alone is
enough. Existing slides keep their behaviour (rating mandatory).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Sonnet 5.5 committed 2026-11-21 13:07:20 +01:00
1 parent dbac9e93c7
commit b496032604
8 files changed
+49 -18

No files matched your search

+1 -1
View File
@@ -686,7 +686,7 @@ class VoteService
*/
protected function scaleRows(Slide $slide, array $data): array
{
if (self::stringField($data, 'value') === '' && $slide->hasComments()) {
if (self::stringField($data, 'value') === '' && $slide->hasCommentOnly()) {
// Comment only: no rating, but a comment is required (this is not a way to skip).
$comment = self::comment($data);
if ($comment === null) {