]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1331127 Repair sort logic of previous issuances
authorBill Erickson <berick@esilibrary.com>
Tue, 17 Jun 2014 19:14:12 +0000 (15:14 -0400)
committerDan Wells <dbw2@calvin.edu>
Thu, 18 Sep 2014 22:13:52 +0000 (18:13 -0400)
commit6dfdbb0154e7615d59612561231f2ab75687e3e2
treeb4e4f91eac2435225a824acddd40302f181db12a
parentd2e752970af829361359195a79dab32b7f97558e
LP#1331127 Repair sort logic of previous issuances

Ensure that the list of previous issuances is sorted correctly (on
date_published) when looking for the previous serial.unit to update its
copy location (when serial.prev_issuance_copy_location is enabled).

The data comes sorted from the DB, but the sorting was lost during the
process of unique-ifying the list.  Ultimately, it was relying on the
order of hash keys, which is undefined.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm