fix locale date format in report header and more (#2520)

* fix problem with empty end datetime in edit time
* fixed calendar creation with tags in "pre-defined tags" mode
* fix locale date format in report header
This commit is contained in:
Kevin Papst
2021-04-21 22:23:32 +02:00
committed by GitHub
parent 305a2fd4f6
commit ff7a402bd4
5 changed files with 14 additions and 13 deletions

View File

@@ -28,19 +28,14 @@ class TimesheetApiEditForm extends TimesheetEditForm
if ($builder->has('user')) {
$builder->get('user')->setRequired(false);
}
}
/**
* Method added to prevent API BC breaks.
*
* @param FormBuilderInterface $builder
*/
protected function addTags(FormBuilderInterface $builder)
{
$builder
->add('tags', TagsInputType::class, [
if ($builder->has('tags')) {
$builder->remove('tags');
// @deprecated for BC reasons here, arrays will be supported in 2.0
$builder->add('tags', TagsInputType::class, [
'required' => false,
]);
}
}
public function configureOptions(OptionsResolver $resolver)