[Koha-bugs] [Bug 17710] C4::Matcher::get_matches and C4::ImportBatch:: GetBestRecordMatch should use same logic

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 2 06:51:06 CET 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17710

--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
So:

@results = sort { $b->{'score'} cmp $a->{'score'} } @results;

Would become:

@results = sort {
    $b->{'score'} cmp $a->{'score'} or
    $b->{'record_id'} cmp $a->{'record_id'}
} @results;

--

I've already tested this and it works a treat. I'll post a patch next week I
reckon.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list