Skip to content

Commit

Permalink
ScheduleElement: Do not fail if start is populated with null
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Apr 21, 2023
1 parent b93beef commit a05218a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FormElement/ScheduleElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ public function setValue($value)

protected function assemble()
{
$start = $this->getPopulatedValue('start', $this->start);
$start = $this->getPopulatedValue('start') ?: $this->start;
if (! $start instanceof DateTime) {
$start = new DateTime($start);
}
Expand Down

0 comments on commit a05218a

Please sign in to comment.