]> git.evergreen-ils.org Git - Evergreen.git/commit
Only attempt to map copies once per hold
authorMike Rylander <mrylander@gmail.com>
Tue, 25 Jun 2013 11:44:22 +0000 (07:44 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Tue, 25 Jun 2013 13:39:52 +0000 (09:39 -0400)
commitfceea3d2e12537ccb540a2a950a5ada22f73b7bf
tree478c96e09a6b5782a627f1f968fc1a2919ccc064
parent79eb7d97debfa8e4292f3f3170fe862ddd09f8ca
Only attempt to map copies once per hold

The development of Calculated Proximity Adjustment (CPA) for 2.4 added a "prox"
column to action.hold_copy_map (ahcm) to store on variant of copy proximity.  That
value is calculated at the same time that certain other data structures are
set up, and is conceptually tied to them, so the resulting combined data
set is used to insert values into the ahcm.  However, user configuration
can cause that data set to contain non-unique values, where the data structure
used previous to CPA was guaranteed to be unique.  This lack of uniqueness
would then violate a constraint on the achm table.  This commit restores the
required uniqueness for the purpose of creating the ahcm rows.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm