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

@@ -20,7 +20,6 @@ use Symfony\Component\Form\FormBuilderInterface;
class AdministrativeLocationFilter implements FilterInterface
{
private TranslatableStringHelper $translatableStringHelper;
public function __construct(
@@ -49,7 +48,6 @@ class AdministrativeLocationFilter implements FilterInterface
public function buildForm(FormBuilderInterface $builder)
{
$builder->add('accepted_locations', Select2UserLocationType::class, [
'label' => 'Accepted locations',
'label_attr' => [

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\PersonBundle\Form\Type;
use Chill\PersonBundle\Entity\SocialWork\SocialAction;
@@ -40,8 +49,7 @@ class Select2SocialActionType extends AbstractType
->setDefault('label', 'Social actions')
->setDefault('label_attr', [])
->setDefault('multiple', false)
->setAllowedTypes('multiple', ['bool'])
;
->setAllowedTypes('multiple', ['bool']);
}
public function getBlockPrefix(): string

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\PersonBundle\Form\Type;
use Chill\PersonBundle\Entity\SocialWork\SocialIssue;
@@ -40,8 +49,7 @@ class Select2SocialIssueType extends AbstractType
->setDefault('label', 'Social issues')
->setDefault('label_attr', [])
->setDefault('multiple', false)
->setAllowedTypes('multiple', ['bool'])
;
->setAllowedTypes('multiple', ['bool']);
}
public function getBlockPrefix(): string