empêche la création d'une entité si une organisation ayant le même code existe

This commit is contained in:
Benjamin Dauvergne 2015-02-05 18:11:15 +01:00
parent 74ca63081a
commit d10e7aae41
1 changed files with 7 additions and 1 deletions

View File

@ -168,10 +168,16 @@ $GLOBALS['LSobjects']['LSsupannEntite'] = array (
),
'validation' => array (
array (
'msg' => "Cet identifiant est déjà utilisé.",
'msg' => "Cet identifiant est déjà utilisé par une autre entité.",
'object_type' => 'LSsupannEntite',
'filter' => '(supannCodeEntite=%{val})',
'result' => 0
),
array (
'msg' => "Cet identifiant est déjà utilisé par une organisation.",
'object_type' => 'LSsupannOrg',
'filter' => '(supannCodeEntite=%{val})',
'result' => 0
)
),
'view' => 1,