Suppression url en paramètre appel
This commit is contained in:
parent
3a9424de78
commit
db497af1f3
3 changed files with 4 additions and 9 deletions
|
|
@ -1,13 +1,6 @@
|
|||
{{#restrict section="config" level="admin" block=true}}{{/restrict}}
|
||||
{{:admin_header title="Modifier une %s"|args:$_GET.direction current="module_equipment"}}
|
||||
|
||||
{{* déterminer l'url de retour *}}
|
||||
{{:assign url=$_GET.caller}}
|
||||
{{:assign pos=$url|strpos:"?"}}
|
||||
{{if $pos|intval > 0}}
|
||||
{{:assign url=$url|truncate:$pos:"":true}}
|
||||
{{/if}}
|
||||
|
||||
{{:assign direction=$_GET.direction}}
|
||||
{{:assign key_mvt=$_GET.key}}
|
||||
|
||||
|
|
@ -18,8 +11,10 @@
|
|||
{{/load}}
|
||||
{{if $direction == "input"}}
|
||||
{{:assign input_init=$mvt_modif.input_nature}}
|
||||
{{:assign url="entrees/index.html"}}
|
||||
{{else}}
|
||||
{{:assign output_init=$mvt_modif.output_nature}}
|
||||
{{:assign url="sorties/index.html"}}
|
||||
{{/if}}
|
||||
{{:assign amount_init=$mvt_modif.amount}}
|
||||
{{:assign date_init=$mvt_modif.date|date_short}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue