LP1906842 PLACE_UNFILLABLE_HOLD permission not working if no titles exist. user/mccanna/lp1906842_unfillable_hold_perm_fix_signoff
authorSteven Callender <stevecallender@esilibrary.com>
Fri, 4 Dec 2020 14:59:25 +0000 (09:59 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Thu, 12 Aug 2021 16:01:29 +0000 (12:01 -0400)
This fix will correct an issue where the screen just keeps looping to the override screen when
trying to place a hold that has no titles available for it.

Signed-off-by: Steven Callender <stevecallender@esilibrary.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index d0b5136..8836834 100644 (file)
@@ -105,7 +105,7 @@ sub test_and_create_hold_batch {
         my $res;
         ($res) = $self->method_lookup(
             'open-ils.circ.title_hold.is_possible')->run($auth, $params, $override ? $oargs : {});
-        if ($res->{'success'} == 1) {
+        if ($res->{'success'} == 1 || ($override && $res->{place_unfillable})) {
 
             $params->{'depth'} = $res->{'depth'} if $res->{'depth'};