Skip to content

Commit

Permalink
suppression de Mlle sur la partie admin des personnes physiques
Browse files Browse the repository at this point in the history
  • Loading branch information
agallou committed Aug 20, 2021
1 parent a4ddbf2 commit ef0c535
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sources/AppBundle/Association/Form/UserEditFormData.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class UserEditFormData
public $companyId;
/**
* @var Assert\NotBlank()
* @var Assert\Choice(choices={"M.", "Mme", "Mlle"}, strict=true)
* @var Assert\Choice(choices={"M.", "Mme"}, strict=true)
*/
public $civility = 'M.';
/**
Expand Down
2 changes: 1 addition & 1 deletion sources/AppBundle/Association/Form/UserEditType.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(

public function buildForm(FormBuilderInterface $builder, array $options)
{
$civilities = ['M.', 'Mme', 'Mlle'];
$civilities = ['M.', 'Mme'];
$builder
->add('companyId', ChoiceType::class, [
'label' => 'Personne morale',
Expand Down
2 changes: 1 addition & 1 deletion tests/behat/features/Admin/AdminPersonnesPhysiques.feature
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Feature: Administration - Partie Personnes physiques
# ajout d'une personne physique
When I follow "Ajouter"
Then I should see "Ajouter une personne physique"
Then The "user_edit[civility]" field should only contain the follow values '["M.", "Mme", "Mlle"]'
Then The "user_edit[civility]" field should only contain the follow values '["M.", "Mme"]'
When I press "Ajouter"
Then I should see "Cette valeur ne doit pas être vide"
When I fill in "user_edit[lastname]" with "Mon nom"
Expand Down

0 comments on commit ef0c535

Please sign in to comment.