From 99bb016edeba88bce8c27335853311553f256fd7 Mon Sep 17 00:00:00 2001 From: Jean-Fabien Date: Tue, 18 Oct 2011 15:27:59 +1300 Subject: [PATCH] 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) --- code/MSSQLDatabase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/MSSQLDatabase.php b/code/MSSQLDatabase.php index 8924194..ef17e44 100644 --- a/code/MSSQLDatabase.php +++ b/code/MSSQLDatabase.php @@ -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);