From 7520a7f74293d38bfcfabb3c72869284cacbaa06 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 7 May 2013 18:39:49 +0200 Subject: [PATCH] Fixed option search --- .../system/search/acp/OptionACPSearchResultProvider.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php b/wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php index ff2b05ff5b..3587b12787 100644 --- a/wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php +++ b/wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php @@ -80,7 +80,7 @@ class OptionACPSearchResultProvider extends AbstractCategorizedACPSearchResultPr continue; } - $link = LinkHandler::getInstance()->getLink('Option', array('id' => $this->getCategoryID($option->categoryName)), 'optionName='.$option->optionName.'#'.$this->getCategoryName($option->categoryName)); + $link = LinkHandler::getInstance()->getLink('Option', array('id' => $this->getCategoryID($this->getTopCategory($option->categoryName)->parentCategoryName)), 'optionName='.$option->optionName.'#'.$this->getCategoryName($option->categoryName)); $results[] = new ACPSearchResult($languageItems[$option->optionName], $link); } -- 2.20.1