From: Jeff Godin Date: Sun, 22 May 2016 18:52:08 +0000 (-0400) Subject: SIP: Fix holds with zero volumes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6b09f486b1ef46145b03ef5d6c9d7d0ceae7ed04;p=evergreen%2Ftadl.git SIP: Fix holds with zero volumes Signed-off-by: Jeff Godin --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm index 99fcc43387..39ba98e113 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/SIP/Patron.pm @@ -574,6 +574,8 @@ sub find_copy_for_hold { {idlist => 1} ); + return undef unless @$vol_ids; + return $e->search_asset_copy([ {call_number => $vol_ids, deleted => 'f'}, {limit => 1}