From: Matthias Schmidt Date: Wed, 9 Oct 2013 15:46:26 +0000 (+0200) Subject: Adds missing parent menu item filter X-Git-Tag: 2.0.0_Beta_11~34^2~3^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=66c24410d2b7a364875813d3a02c597cbc35e49d;p=GitHub%2FWoltLab%2FWCF.git Adds missing parent menu item filter --- 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');