From 66c24410d2b7a364875813d3a02c597cbc35e49d Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Wed, 9 Oct 2013 17:46:26 +0200 Subject: [PATCH] Adds missing parent menu item filter --- .../install/files/lib/acp/form/PageMenuItemAddForm.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php index 57f4c1e4f8..a4c000234a 100644 --- a/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php @@ -108,6 +108,7 @@ class PageMenuItemAddForm extends AbstractForm { protected function initAvailableParentMenuItems() { $this->availableParentMenuItems = new PageMenuItemList(); $this->availableParentMenuItems->getConditionBuilder()->add("page_menu_item.parentMenuItem = ''"); + $this->availableParentMenuItems->getConditionBuilder()->add('page_menu_item.menuPosition = ?', array('header')); $this->availableParentMenuItems->sqlOrderBy = "page_menu_item.showOrder ASC"; } @@ -170,7 +171,7 @@ class PageMenuItemAddForm extends AbstractForm { } else { $this->menuItemController = ''; - + // validate menu item link if (!I18nHandler::getInstance()->validateValue('menuItemLink')) { throw new UserInputException('menuItemLink'); -- 2.20.1