Only attempt to map copies once per hold
authorMike Rylander <mrylander@gmail.com>
Tue, 25 Jun 2013 11:44:22 +0000 (07:44 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 25 Jun 2013 20:41:50 +0000 (16:41 -0400)
commitc1e878888998f2a9dd4e588ed3e92f2c505eb7f3
tree0e635f223f4808742a993ed383204198b95f7f69
parent3e20a68a6e53f9aee66f56b689564aad5b8456be
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>
Conflicts (whitespace only):
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/action.pm