mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-18 11:12:50 +00:00
make somes changes on model: to manage isVisible field option + others
This commit is contained in:
@@ -302,18 +302,9 @@ class ActivityType extends AbstractType
|
||||
;
|
||||
}
|
||||
|
||||
/*
|
||||
if ($activityType->isVisible('location')) {
|
||||
$builder
|
||||
->add('location', HiddenType::class)
|
||||
->get('location')
|
||||
->addModelTransformer(new CallbackTransformer(
|
||||
function () {},
|
||||
function () {}
|
||||
))
|
||||
;
|
||||
$builder->add('location', HiddenType::class);
|
||||
}
|
||||
*/
|
||||
|
||||
if ($activityType->isVisible('emergency')) {
|
||||
$builder->add('emergency', CheckboxType::class, [
|
||||
|
Reference in New Issue
Block a user