diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 61857606be..a5befe69da 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -1036,6 +1036,7 @@ sub GetBestRecordMatch { my $dbh = C4::Context->dbh; my $sth = $dbh->prepare("SELECT candidate_match_id FROM import_record_matches + JOIN biblio ON ( candidate_match_id = biblionumber ) WHERE import_record_id = ? ORDER BY score DESC, candidate_match_id DESC"); $sth->execute($import_record_id);