Skip to content

Commit

Permalink
check parent against IndexableInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Jan 10, 2023
1 parent 963203b commit 5d33b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CoreShop/Bundle/IndexBundle/Worker/AbstractWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected function prepareData(IndexInterface $index, IndexableInterface $object
}

$virtualObjectId = $parent->getId();
$virtualObjectActive = $parent->getIndexableEnabled($index);
$virtualObjectActive = $parent instanceof IndexableInterface ? $parent->getIndexableEnabled($index) : false;
}

$data = [
Expand Down

0 comments on commit 5d33b68

Please sign in to comment.