Skip to content

Commit

Permalink
Check that a candidate for deduplication is in a source that is confi…
Browse files Browse the repository at this point in the history
…gured for deduplication (#156)
  • Loading branch information
jschultze authored Mar 27, 2024
1 parent 308b57a commit dded08f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/RecordManager/Base/Deduplication/DedupHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,11 @@ function () use ($record) {
$processed = 0;
// Go through the candidates, try to match
foreach ($candidates as $candidate) {
// Check that the candidate is in a source that is configured for deduplication
if (empty($this->dataSourceConfig[$candidate['source_id']]['dedup'])) {
continue;
}

// Check that we haven't already tried this candidate
if (isset($noMatchRecordIds[$candidate['_id']])) {
continue;
Expand Down

0 comments on commit dded08f

Please sign in to comment.