From c9de8fabacb943b9d736c73a8b0ac34dcda0fd82 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 7 May 2013 17:32:29 +0200 Subject: [PATCH] Fixed menu item search --- com.woltlab.wcf/acpMenu.xml | 1 - .../search/acp/MenuItemACPSearchResultProvider.class.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index 398bf21750..09dad4fbc5 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -50,7 +50,6 @@ - wcf.acp.menu.link.package.management admin.system.package.canInstallPackage 2 diff --git a/wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php index 9496bbaa30..aae1ad83b6 100644 --- a/wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/MenuItemACPSearchResultProvider.class.php @@ -52,9 +52,9 @@ class MenuItemACPSearchResultProvider extends AbstractACPSearchResultProvider im $conditions = new PreparedStatementConditionBuilder(); $conditions->add("menuItem IN (?)", array(array_keys($languageItems))); - $conditions->add("menuItemLink <> ''"); + $conditions->add("menuItemController <> ''"); - $sql = "SELECT menuItem, menuItemLink, permissions, options + $sql = "SELECT * FROM wcf".WCF_N."_acp_menu_item ".$conditions; $statement = WCF::getDB()->prepareStatement($sql); // don't use a limit here -- 2.20.1