Suppression url en paramètre appel

This commit is contained in:
Jean-Christophe Engel 2023-12-06 10:05:34 +01:00
parent 3a9424de78
commit db497af1f3
3 changed files with 4 additions and 9 deletions

View File

@ -65,7 +65,7 @@
target="_dialog"}}
{{:linkbutton
label="Modifier"
href="../modifier_mouvement.html?key=%s&direction=input&caller=%s"|args:$mvt_key:$request_url
href="../modifier_mouvement.html?key=%s&direction=input"|args:$mvt_key
shape="edit"
target="_dialog"}}
</td>

View File

@ -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}}

View File

@ -64,7 +64,7 @@
target="_dialog"}}
{{:linkbutton
label="Modifier"
href="../modifier_mouvement.html?key=%s&direction=output&caller=%s"|args:$mvt_key:$request_url
href="../modifier_mouvement.html?key=%s&direction=output"|args:$mvt_key
shape="edit"
target="_dialog"}}
</td>