This commit is contained in:
Laurent Destailleur 2023-02-22 13:50:04 +01:00
parent dca143087b
commit 7260dcb739

View File

@ -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 if ($action == 'add' && GETPOST('delete')) { // Click on button update must be used in priority before param $action
$action = 'delete'; $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'; $action = 'add';
} }*/
if ($action == 'delete' && GETPOST('add')) { // Click on button add must be used in priority before param $action if ($action == 'delete' && GETPOST('add')) { // Click on button add must be used in priority before param $action
$action = 'add'; $action = 'add';
} }
@ -234,7 +234,7 @@ if (isModEnabled('multicompany') && !$user->entity) {
print '<td class="center">'; print '<td class="center">';
print '<input type="hidden" name="entity" value="' . $conf->entity . '">'; print '<input type="hidden" name="entity" value="' . $conf->entity . '">';
} }
print '<input type="submit" class="button button-add small" name="add" value="'.$langs->trans("Add").'">'; print '<input type="submit" class="button button-add small" id="add" name="add" value="'.$langs->trans("Add").'">';
print "</td>\n"; print "</td>\n";
print '</tr>'; print '</tr>';