mirror of
https://github.com/silverstripe/silverstripe-fulltextsearch
synced 2024-10-22 12:05:29 +00:00
FIX: will work for postgreSQL
subsites will fail with this module if running on PostgrSQL
This commit is contained in:
parent
9629f0e0f5
commit
fa0dcb7078
@ -69,7 +69,7 @@ class SearchVariantSubsites extends SearchVariant {
|
||||
if (!$this->appliesTo($write['class'], true)) continue;
|
||||
|
||||
if (self::$subsites === null) {
|
||||
$query = new SQLQuery('ID', 'Subsite');
|
||||
$query = new SQLQuery('"ID"', '"Subsite"');
|
||||
self::$subsites = array_merge(array('0'), $query->execute()->column());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user