Update create.php
This commit is contained in:
parent
94cf393f7f
commit
48dfc90c8b
@ -29,7 +29,7 @@ $action = GETPOST('action', 'alpha');
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($action == 'create') {
|
if ($action == 'add') {
|
||||||
if (empty($ref) || empty($label)) {
|
if (empty($ref) || empty($label)) {
|
||||||
setEventMessages($langs->trans('ErrorFieldsRequired'), null, 'errors');
|
setEventMessages($langs->trans('ErrorFieldsRequired'), null, 'errors');
|
||||||
} else {
|
} else {
|
||||||
@ -70,7 +70,7 @@ print dol_get_fiche_head();
|
|||||||
|
|
||||||
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
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.'">';
|
print '<input type="hidden" name="backtopage" value="'.$backtopage.'">';
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user