mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
Update for latest SS4 changes
This commit is contained in:
parent
360b70aa22
commit
dd81faac7b
@ -303,7 +303,7 @@ class SQLite3Database extends Database
|
|||||||
$extraFilters[$pageClass] .= ' AND ShowInSearch <> 0';
|
$extraFilters[$pageClass] .= ' AND ShowInSearch <> 0';
|
||||||
// File.ShowInSearch was added later, keep the database driver backwards compatible
|
// File.ShowInSearch was added later, keep the database driver backwards compatible
|
||||||
// by checking for its existence first
|
// by checking for its existence first
|
||||||
if (File::singleton()->db('ShowInSearch')) {
|
if (File::singleton()->getSchema()->fieldSpec(File::class, 'ShowInSearch')) {
|
||||||
$extraFilters[$fileClass] .= " AND ShowInSearch <> 0";
|
$extraFilters[$fileClass] .= " AND ShowInSearch <> 0";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user