allow empty date in export (#1338)

This commit is contained in:
Kevin Papst
2019-12-31 20:24:47 +01:00
committed by GitHub
parent baac4eb698
commit 022dbe32e5
5 changed files with 12 additions and 7 deletions

View File

@@ -122,10 +122,10 @@ abstract class AbstractToolbarForm extends AbstractType
]);
}
protected function addDateRangeChoice(FormBuilderInterface $builder, $allowEmpty = true)
protected function addDateRangeChoice(FormBuilderInterface $builder, $allowEmpty = true, $required = false)
{
$builder->add('daterange', DateRangeType::class, [
'required' => false,
'required' => $required,
'allow_empty' => $allowEmpty,
]);
}