From: Marcel Werk Date: Tue, 7 May 2013 16:39:49 +0000 (+0200) Subject: Fixed option search X-Git-Tag: 2.0.0_Beta_1~230^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7520a7f74293d38bfcfabb3c72869284cacbaa06;p=GitHub%2FWoltLab%2FWCF.git Fixed option search --- 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); }