Merge pull request #21819 from Humml87/develop_Fix_Create_left_menu
Fix: left and top menu can't create. Now the checks are correct.
This commit is contained in:
commit
2602f9d4cc
@ -172,12 +172,12 @@ if ($action == 'add') {
|
||||
$action = 'create';
|
||||
$error++;
|
||||
}
|
||||
if (!$error && GETPOST('menuId') && GETPOST('type') == 'top') {
|
||||
if (!$error && GETPOST('menuId', 'alphanohtml', 3) && GETPOST('type') == 'top') {
|
||||
setEventMessages($langs->trans("ErrorTopMenuMustHaveAParentWithId0"), null, 'errors');
|
||||
$action = 'create';
|
||||
$error++;
|
||||
}
|
||||
if (!$error && !GETPOST('menuId') && GETPOST('type') == 'left') {
|
||||
if (!$error && !GETPOST('menuId', 'alphanohtml', 3) && GETPOST('type') == 'left') {
|
||||
setEventMessages($langs->trans("ErrorLeftMenuMustHaveAParentId"), null, 'errors');
|
||||
$action = 'create';
|
||||
$error++;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user