mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
BUG Fix reference to obsolete API (#59)
This commit is contained in:
parent
a5738dbfd1
commit
f2ba2f6717
@ -429,7 +429,7 @@ class PostgreSQLDatabase extends Database
|
|||||||
$tableName = $searchableColumn['table_name'];
|
$tableName = $searchableColumn['table_name'];
|
||||||
$columnName = $searchableColumn['column_name'];
|
$columnName = $searchableColumn['column_name'];
|
||||||
$className = DataObject::getSchema()->tableClass($tableName);
|
$className = DataObject::getSchema()->tableClass($tableName);
|
||||||
if (DataObject::singleton($className)->db('ShowInSearch')) {
|
if (DataObject::getSchema()->fieldSpec($className, 'ShowInSearch')) {
|
||||||
$conditions[] = array('"ShowInSearch"' => 1);
|
$conditions[] = array('"ShowInSearch"' => 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user