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:42:40 +0000 (09:42 -0400)
commit00e8da7dc45793f9664e7808d95e3be569b1eda4
tree3d5c6599e872a8c91d081fcd69d4d54bddd3a66f
parent52f893edbec7b71a2e9c40afb1cd5a7c2cc1cc9b
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