From 7260dcb7399083be911a98efcd6374a83775ef81 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Feb 2023 13:50:04 +0100 Subject: [PATCH] Fix edit --- htdocs/admin/const.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/admin/const.php b/htdocs/admin/const.php index 895ce8c1b08..51de87d054e 100644 --- a/htdocs/admin/const.php +++ b/htdocs/admin/const.php @@ -64,9 +64,9 @@ if ($action == 'add' && GETPOST('update')) { // Click on button update must be u if ($action == 'add' && GETPOST('delete')) { // Click on button update must be used in priority before param $action $action = 'delete'; } -if ($action == 'update' && GETPOST('add')) { // Click on button add must be used in priority before param $action +/*if ($action == 'update' && GETPOST('add')) { // 'add' button is always clicked as it is the first in form. $action = 'add'; -} +}*/ if ($action == 'delete' && GETPOST('add')) { // Click on button add must be used in priority before param $action $action = 'add'; } @@ -234,7 +234,7 @@ if (isModEnabled('multicompany') && !$user->entity) { print ''; print ''; } -print ''; +print ''; print "\n"; print '';