Update create.php

This commit is contained in:
Laurent Destailleur 2020-12-21 18:06:02 +01:00 committed by GitHub
parent 94cf393f7f
commit 48dfc90c8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ $action = GETPOST('action', 'alpha');
* Actions
*/
if ($action == 'create') {
if ($action == 'add') {
if (empty($ref) || empty($label)) {
setEventMessages($langs->trans('ErrorFieldsRequired'), null, 'errors');
} else {
@ -70,7 +70,7 @@ print dol_get_fiche_head();
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
print '<input type="hidden" name="token" value="'.newToken().'">';
print '<input type="hidden" name="action" value="create">';
print '<input type="hidden" name="action" value="add">';
print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
?>