simplification casse et améliorations présentation
This commit is contained in:
parent
5c7e6e9b0f
commit
610af4e6a8
8 changed files with 10 additions and 14 deletions
|
|
@ -39,7 +39,7 @@
|
|||
{{#load key=$equipment_key}}
|
||||
{{if $name|trim|tolower != $_POST.name|trim|tolower}}
|
||||
{{* le nom change => vérifier l'existence d'un matériel du même nom *}}
|
||||
{{#load type="equipment" where="$$.name = :name" :name=$_POST.name|trim|tolower|ucfirst limit=1}}
|
||||
{{#load type="equipment" where="$$.name = :name COLLATE U_NOCASE" :name=$_POST.name|trim limit=1}}
|
||||
{{:assign chgt_ok=false}}
|
||||
{{/load}}
|
||||
{{else}}
|
||||
|
|
@ -49,7 +49,7 @@
|
|||
|
||||
{{else}}
|
||||
{{* catégorie ne change pas => vérifier le nom *}}
|
||||
{{#load type="equipment" where="$$.name = :name" :name=$_POST.name|trim|tolower|ucfirst limit=1}}
|
||||
{{#load type="equipment" where="$$.name = :name COLLATE U_NOCASE" :name=$_POST.name|trim limit=1}}
|
||||
{{:assign chgt_ok=false}}
|
||||
{{/load}}
|
||||
{{/if}}
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
{{:save
|
||||
key=$equipment_key
|
||||
category=$category.key
|
||||
name=$_POST.name|trim|tolower|ucfirst
|
||||
name=$_POST.name|trim
|
||||
}}
|
||||
{{/if}}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue