Fix: left menu can't create. Now the check is correct.
This commit is contained in:
parent
f95612d9a5
commit
9c9e1b776c
@ -177,7 +177,7 @@ if ($action == 'add') {
|
|||||||
$action = 'create';
|
$action = 'create';
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
if (!$error && !GETPOST('menuId') && GETPOST('type') == 'left') {
|
if (!$error && !GETPOST('menuId') && GETPOST('type') != 'left') {
|
||||||
setEventMessages($langs->trans("ErrorLeftMenuMustHaveAParentId"), null, 'errors');
|
setEventMessages($langs->trans("ErrorLeftMenuMustHaveAParentId"), null, 'errors');
|
||||||
$action = 'create';
|
$action = 'create';
|
||||||
$error++;
|
$error++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user