Commit 9694445b authored by Julien Minet's avatar Julien Minet

fix deprecations: getName -> getBlockPrefix + use fqcn for Select2maritalStatusType

parent cf6b36c8
Pipeline #45931 failed with stages
in 5 minutes and 29 seconds
......@@ -32,6 +32,7 @@ use Chill\PersonBundle\Form\Type\GenderType;
use Chill\MainBundle\Form\Type\Select2CountryType;
use Chill\MainBundle\Form\Type\Select2LanguageType;
use Chill\CustomFieldsBundle\Form\Type\CustomFieldType;
use Chill\PersonBundle\Form\Type\Select2MaritalStatusType;
class PersonType extends AbstractType
{
......@@ -102,7 +103,7 @@ class PersonType extends AbstractType
}
if ($this->config['marital_status'] === 'visible'){
$builder->add('maritalStatus', 'select2_chill_marital_status', array(
$builder->add('maritalStatus', Select2MaritalStatusType::class, array(
'required' => false
));
}
......
......@@ -47,7 +47,7 @@ class Select2MaritalStatusType extends AbstractType
$this->em = $em;
}
public function getName() {
public function getBlockPrefix() {
return 'select2_chill_marital_status';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment