LP#1679279 Hold targeter parallel grouping repair
authorBill Erickson <berickxx@gmail.com>
Mon, 3 Apr 2017 19:13:08 +0000 (15:13 -0400)
committerKathy Lussier <klussier@masslnc.org>
Wed, 19 Apr 2017 14:32:13 +0000 (10:32 -0400)
Group parallel hold targeting batches on the metarecord ID, instead of
the ID of the metarecord map, which has no meaning to the application.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/perlmods/lib/OpenILS/Utils/HoldTargeter.pm

index f7cc947..eaed9b4 100644 (file)
@@ -176,7 +176,7 @@ sub find_holds_to_target {
         my $slot = $self->{parallel_slot} - 1;
 
         $query->{where}->{'+mmrsm'} = {
-            id => {
+            metarecord => {
                 '=' => {
                     transform => 'mod',
                     value => $slot,