From 60f6ca72c966d770af2f2072a6a0bf243c0a8081 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Sat, 23 Sep 2017 12:27:53 -0400 Subject: [PATCH] Try to get success/failure messages per hold. --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm index 174615c555..2c2aeac11c 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Account.pm @@ -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)) { -- 2.11.0