fixing bugs
This commit is contained in:
@@ -191,7 +191,7 @@ private function validateDetailsAnswer($question, $answer, array &$errors): void
|
||||
}
|
||||
}
|
||||
|
||||
if (! $hasRadioButtons && $details !== null && $details !== '') {
|
||||
if (! $hasRadioButtons && $details !== null && $details !== '' && $details !== 'optional') {
|
||||
if (! $answer || empty(trim(Arr::get($answer->toArray(), 'text_value', '')))) {
|
||||
$errors[] = "Question '{$question->text}' requires a text response.";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user