Repair override args params for hold title possible check
authorBill Erickson <berick@esilibrary.com>
Fri, 22 Jun 2012 15:15:14 +0000 (11:15 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 22 Jun 2012 15:15:14 +0000 (11:15 -0400)
The 8th arg to _check_title_hold_is_possible() should be the holdable
formats (or undef), not the override args.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 6132846..b72db96 100644 (file)
@@ -2342,7 +2342,7 @@ sub do_possibility_checks {
        } elsif( $hold_type eq OILS_HOLD_TYPE_TITLE ) {
 
                return _check_title_hold_is_possible(
-                       $titleid, $depth, $request_lib, $patron, $e->requestor, $pickup_lib, $selection_ou, $oargs
+                       $titleid, $depth, $request_lib, $patron, $e->requestor, $pickup_lib, $selection_ou, undef, $oargs
         );
 
        } elsif( $hold_type eq OILS_HOLD_TYPE_ISSUANCE ) {