Fix: left menu can't create. Now the check is correct.

This commit is contained in:
Christian Humpel 2022-08-20 19:19:31 +02:00
parent f95612d9a5
commit 9c9e1b776c

View File

@ -177,7 +177,7 @@ if ($action == 'add') {
$action = 'create';
$error++;
}
if (!$error && !GETPOST('menuId') && GETPOST('type') == 'left') {
if (!$error && !GETPOST('menuId') && GETPOST('type') != 'left') {
setEventMessages($langs->trans("ErrorLeftMenuMustHaveAParentId"), null, 'errors');
$action = 'create';
$error++;