]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1315552 Don't use circ_lib name in ranked_volumes
authorDan Wells <dbw2@calvin.edu>
Tue, 10 May 2016 19:41:54 +0000 (15:41 -0400)
committerMike Rylander <mrylander@gmail.com>
Wed, 24 Aug 2016 15:57:23 +0000 (11:57 -0400)
commitdb9a0bb41e4bd569fbbdc7e4a57778da98f69604
tree88ac4e03594fc56c3789b01dabf7e548426f26ad
parentf5867b209304ecaf25ce94bf538299d9d15cc34e
LP#1315552 Don't use circ_lib name in ranked_volumes

ranked_volumes() is supposed to return only volume info, but the name
returned was from copy.circ_lib, not acn.owning_lib, so it could result
in duplicate rows if circ_lib's varied across a single acn.

Let's just use the owning_lib name instead.  Note: the circ_lib join
is left undisturbed to keep the current sorting behavior
(necessary?).

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/sql/Pg/990.schema.unapi.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.function.unapi.ranked_volumes.sql [new file with mode: 0644]