https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44291 --- Comment #1 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 212627 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212627&action=edit Bug 44291: Fall back to FindDuplicate when the matching rule does not apply When a record matching rule is set for a framework (bug 15248), it replaces FindDuplicate. If the record has none of the fields used by the rule (e.g. a rule on 035$a and a vendor record without 035), nothing can match and the record is not checked for duplicates at all. FindDuplicateWithMatchingRules now falls back to FindDuplicate in that case. Test plan: 1. Create a record matching rule for biblios: threshold 100, one match point on index Other-control-number, score 100, tag 035, subfield a 2. Administration > MARC frameworks > Default framework: select this rule 3. Catalog a new record with the same ISBN and title as an existing record, without 035, and save => No duplicate warning 4. Apply the patch, restart_all 5. Repeat 3 => "Duplicate record suspected" warning 6. Catalog a record whose 035$a matches an existing record => The matching rule is still used 7. prove t/db_dependent/Search.t -- You are receiving this mail because: You are watching all bug changes.