Fixed option search
authorMarcel Werk <burntime@woltlab.com>
Tue, 7 May 2013 16:39:49 +0000 (18:39 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 7 May 2013 16:39:49 +0000 (18:39 +0200)
wcfsetup/install/files/lib/system/search/acp/OptionACPSearchResultProvider.class.php

index ff2b05ff5bacdb0599f9da6b93d84c20442cce67..3587b12787914dae6591b5bcb8eeac8f262d06e9 100644 (file)
@@ -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);
                }