mirror of
https://github.com/silverstripe/silverstripe-mssql
synced 2024-10-22 08:05:53 +02:00
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:
parent
b6082a023e
commit
99bb016ede
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user