https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44332 --- Comment #1 from babar junaid <babarjunaid1122@gmail.com> --- Created attachment 212775 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212775&action=edit Bug 44332: Give every hold its own priority when merging records Bug 44332: Give every hold its own priority when merging records MergeHolds() renumbered the holds on the record kept with an UPDATE matched on borrowernumber + reservedate + itemnumber, not on reserve_id. When one patron had a hold on each of the two records, placed the same day, both of that patron's holds matched each UPDATE: they ended with the same priority and the queue had no hold at priority 1. The holds are now renumbered by reserve_id, in the same order as before (reservedate, then reserve_id). Test plan: 1. Apply only the test file change and run prove t/db_dependent/Reserves.t The new subtest "MergeHolds gives every hold its own priority" fails: the priorities are 2, 2, 3. 2. Apply the whole patch and run it again: they are 1, 2, 3. Note: 'can successfully generate hold slip (bug 10949)' and 'no warnings' already fail on main in KTD without this patch. Sponsored-by: Koha Solutions -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.