Try to get success/failure messages per hold.
authorJason Stephenson <jason@sigio.com>
Sat, 23 Sep 2017 16:27:53 +0000 (12:27 -0400)
committerJason Stephenson <jason@sigio.com>
Fri, 29 Sep 2017 22:46:52 +0000 (18:46 -0400)
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm

index 174615c..2c2aeac 100644 (file)
@@ -1367,7 +1367,8 @@ sub attempt_hold_placement {
                 last;
             }
 
-            my ($hdata) = grep {$_->{target_id} eq $resp->{target}} @hold_data;
+            # Need to modify this to skip those that had the hold_success or hold_failed fields set.
+            my ($hdata) = grep {$_->{target_id} eq $resp->{target} && !($_->{hold_failed} || $_->{hold_success})} @hold_data;
             my $result = $resp->{result};
 
             if ($U->event_code($result)) {