Ne pas rendre la saisie du SIRET obligatoire pour les cas où il ne
serait pas disponible
This commit is contained in:
parent
b5dc9d0efa
commit
b2e63c0383
5 changed files with 6 additions and 7 deletions
|
|
@ -40,7 +40,7 @@ class Client
|
|||
{
|
||||
$data[$key] = trim($data[$key]);
|
||||
|
||||
if($data[$key] == '' && ($key != 'telephone' && $key != 'email'))
|
||||
if($data[$key] == '' && ($key != 'siret' && $key != 'telephone' && $key != 'email'))
|
||||
{
|
||||
throw new UserException('Le champs '.$key.' doit être renseigné.');
|
||||
}
|
||||
|
|
@ -128,7 +128,7 @@ class Client
|
|||
'label' => 'Ville',
|
||||
],
|
||||
'siret' => [
|
||||
'label' => 'Siret',
|
||||
'label' => 'SIRET',
|
||||
],
|
||||
'telephone' => [
|
||||
'label' => 'Téléphone',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue