From 810c8875376dfa9450cfdc5444285b095ef48386 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 11 Mar 2016 00:55:10 +0100 Subject: [PATCH] Fixed issues in menu item creation --- .../files/lib/acp/form/MenuItemAddForm.class.php | 3 ++- .../files/lib/data/menu/item/MenuItemEditor.class.php | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php index 93196fcd25..3fd3800e21 100644 --- a/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MenuItemAddForm.class.php @@ -185,7 +185,8 @@ class MenuItemAddForm extends AbstractForm { 'menuID' => $this->menuID, 'parentItemID' => $this->parentItemID, 'showOrder' => $this->showOrder, - 'identifier' => StringUtil::getRandomID() + 'identifier' => StringUtil::getRandomID(), + 'packageID' => 1 ])]); $this->objectAction->executeAction(); diff --git a/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php b/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php index ae70bf4373..6ab86c0177 100644 --- a/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php +++ b/wcfsetup/install/files/lib/data/menu/item/MenuItemEditor.class.php @@ -1,6 +1,8 @@ reset(); + } } -- 2.20.1