Skip to content

Commit af4f93a

Browse files
committed
Make cron_expression element required
So that the `BaseFormeElement` `isRequired()` validation is triggered before parsing `null` value in `ScheduleElement#getValue()` into `Cron` frequency.
1 parent aaa0f7b commit af4f93a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/FormElement/ScheduleElement.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ protected function assemble()
469469
}
470470
} elseif ($this->hasCronExpression()) {
471471
$this->addElement('text', 'cron_expression', [
472+
'required' => true,
472473
'label' => $this->translate('Cron Expression'),
473474
'description' => $this->translate('Job cron Schedule'),
474475
'validators' => [

0 commit comments

Comments
 (0)