diff --git a/plugins/bc-search-index/src/Model/Behavior/BcSearchIndexManagerBehavior.php b/plugins/bc-search-index/src/Model/Behavior/BcSearchIndexManagerBehavior.php index 454d2c5e57..b8dc94eecd 100755 --- a/plugins/bc-search-index/src/Model/Behavior/BcSearchIndexManagerBehavior.php +++ b/plugins/bc-search-index/src/Model/Behavior/BcSearchIndexManagerBehavior.php @@ -215,7 +215,8 @@ public function saveSearchIndex($searchIndex) $before = $this->SearchIndexes->find() ->where([ 'model' => $searchIndex['model'], - 'model_id' => $searchIndex['model_id'] + 'model_id' => $searchIndex['model_id'], + 'content_id' => $searchIndex['content_id'], ])->first(); } if ($before) {