Fixed page menu issue
authorMarcel Werk <burntime@woltlab.com>
Wed, 2 Apr 2014 19:34:25 +0000 (21:34 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 2 Apr 2014 19:34:25 +0000 (21:34 +0200)
wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php

index 092e0894c8409e55b3ed38c73be6d3d475375a08..71ffe918e1de724caf26cf89f442a29c334a7bc3 100644 (file)
@@ -215,7 +215,8 @@ class PageMenuItemAddForm extends AbstractForm {
                        'menuItemLink' => ($this->menuItemController ? $this->menuItemParameters : $this->menuItemLink),
                        'menuPosition' => $this->menuPosition,
                        'parentMenuItem' => $this->parentMenuItem,
-                       'showOrder' => $this->showOrder
+                       'showOrder' => $this->showOrder,
+                       'menuItem' => StringUtil::getRandomID()
                ))));
                $this->objectAction->executeAction();
                
@@ -234,6 +235,7 @@ class PageMenuItemAddForm extends AbstractForm {
                // update i18n values
                $menuItemEditor = new PageMenuItemEditor($menuItem);
                $menuItemEditor->update($data);
+               PageMenuItemEditor::resetCache();
                
                // call saved event
                $this->saved();