mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-09 08:14:59 +00:00
calendar app: set mainUser and options for form
This commit is contained in:
@@ -81,10 +81,8 @@ class CalendarType extends AbstractType
|
||||
'expanded' => true,
|
||||
]);
|
||||
|
||||
if ($options['data'] instanceof Calendar && $options['data']->getId() === null) {
|
||||
$builder->add('mainUser', HiddenType::class);
|
||||
$builder->get('mainUser')->addModelTransformer($this->idToUserDataTransformer);
|
||||
}
|
||||
$builder->add('mainUser', HiddenType::class);
|
||||
$builder->get('mainUser')->addModelTransformer($this->idToUserDataTransformer);
|
||||
|
||||
$builder->add('startDate', HiddenType::class);
|
||||
$builder->get('startDate')
|
||||
|
Reference in New Issue
Block a user