From: Matthias Schmidt Date: Wed, 24 Apr 2013 15:51:15 +0000 (+0200) Subject: Fixes issues when creating page menu items X-Git-Tag: 2.0.0_Beta_1~306^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=25ec1f85f4824722ebffa7b1691e596a369cb6dd;p=GitHub%2FWoltLab%2FWCF.git Fixes issues when creating page menu items --- diff --git a/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php index 02fec357f6..0c71259361 100644 --- a/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php @@ -239,8 +239,11 @@ class PageMenuItemAddForm extends AbstractForm { $this->menuItemController = $this->menuItemLink = $this->pageMenuItem = $this->parentMenuItem = ''; $this->showOrder = 0; + // disable assignment of value variables + I18nHandler::getInstance()->disableAssignValueVariables(); + // reload parent menu items - if ($menuItem->menuPosition == 'header' && $menuItem->parentMenuItem != '') { + if ($menuItem->menuPosition == 'header' && $menuItem->parentMenuItem == '') { $this->readAvailableParentMenuItems(); } }