Merge pull request #279 from chrometoasters/pulls/fix-108-getDirtyIDs

FIX #108 - Update and simplify getDirtyIDs method
This commit is contained in:
Daniel Hensby 2020-04-18 21:04:06 +01:00 committed by GitHub
commit 04081b1ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -615,9 +615,6 @@ abstract class SearchIndex extends ViewableData
$ids = array($id);
foreach ($derivation['chain'] as $step) {
// Use TableName for queries
$tableName = DataObject::getSchema()->tableName($step['class']);
if ($step['through'] == 'has_one') {
$ids = DataObject::get($step['class'])
->filter($step['foreignkey'], $ids)