Do not show menu item controller if page is selected
authorMatthias Schmidt <gravatronics@live.com>
Tue, 8 Jul 2014 16:39:52 +0000 (18:39 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 8 Jul 2014 16:39:52 +0000 (18:39 +0200)
wcfsetup/install/files/lib/acp/form/PageMenuItemAddForm.class.php

index f25d35c0d29b8d28c7bfe53a03d245ac1c04a6c9..7672d86865386cb551cfb6d50d599d65488989fe 100644 (file)
@@ -300,7 +300,7 @@ class PageMenuItemAddForm extends AbstractForm {
                        'availableParentMenuItems' => $this->availableParentMenuItems,
                        'isDisabled' => $this->isDisabled,
                        'isInternalLink' => $this->isInternalLink,
-                       'menuItemController' => $this->menuItemController,
+                       'menuItemController' => $this->menuItemPage ? '' : $this->menuItemController,
                        'menuItemParameters' => $this->menuItemParameters,
                        'menuItemLink' => $this->menuItemLink,
                        'menuItemPage' => $this->menuItemPage,