BUGFIX Includes all children of a class when building the query for SearchEngine, not only the ones that have a table in the db (ie if the Page class doesn't have a $db property, pages with this page type would be excluded from the search results)

This commit is contained in:
Jean-Fabien 2011-10-18 15:27:59 +13:00 committed by Ingo Schommer
parent b6082a023e
commit 99bb016ede
1 changed files with 1 additions and 1 deletions

View File

@ -1303,7 +1303,7 @@ class MSSQLDatabase extends SS_Database {
$allClassesToSearch = array();
foreach ($classesToSearch as $class) {
$allClassesToSearch = array_merge($allClassesToSearch, ClassInfo::dataClassesFor($class));
$allClassesToSearch = array_merge($allClassesToSearch, ClassInfo::getValidSubClasses($class));
}
$allClassesToSearch = array_unique($allClassesToSearch);