This commit is contained in:
2022-10-10 18:52:38 +02:00
parent 9c709d4388
commit 5c6068e8a5
7 changed files with 103 additions and 82 deletions

View File

@@ -1,5 +1,14 @@
<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\MainBundle\Form\Type;
use Chill\MainBundle\Entity\LocationType;
@@ -40,8 +49,7 @@ class Select2LocationTypeType extends AbstractType
->setDefault('label', 'Location type')
->setDefault('label_attr', [])
->setDefault('multiple', false)
->setAllowedTypes('multiple', ['bool'])
;
->setAllowedTypes('multiple', ['bool']);
}
public function getBlockPrefix(): string

View File

@@ -57,8 +57,7 @@ class Select2UserLocationType extends AbstractType
->setDefault('label', 'Current location')
->setDefault('label_attr', [])
->setDefault('multiple', false)
->setAllowedTypes('multiple', ['bool'])
;
->setAllowedTypes('multiple', ['bool']);
}
public function getBlockPrefix(): string