We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 926d0f7 + da3da0b commit 0c4c36eCopy full SHA for 0c4c36e
1 file changed
lib/Service/FormsService.php
@@ -131,7 +131,7 @@ public function getQuestions(int $formId): array {
131
}
132
133
// Set `isRequired` if minimum options limit is set
134
- if ($question['type'] === Constants::ANSWER_TYPE_MULTIPLE && $question['extraSettings']['optionsLimitMin'] > 0) {
+ if ($question['type'] === Constants::ANSWER_TYPE_MULTIPLE && ($question['extraSettings']['optionsLimitMin'] ?? 0) > 0) {
135
$question['isRequired'] = true;
136
137
0 commit comments