From: Mike Rylander Date: Mon, 22 May 2017 13:56:06 +0000 (-0400) Subject: webstaff: Serials -- allow issuances (ad hoc) that have no scap X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1be3c470daaa2a08da588037f4319b82e6e023b4;p=working%2FEvergreen.git webstaff: Serials -- allow issuances (ad hoc) that have no scap Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm index 179306695e..dbf2884d21 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Serial.pm @@ -1347,7 +1347,7 @@ sub unitize_items { if (!exists($found_types{$stream_id})) { $found_types{$stream_id} = {}; } - $found_types{$stream_id}->{$scap->type} = 1; + $found_types{$stream_id}->{$scap->type} = 1 if ($scap); # create unit if needed if ($unit_id == -1 or (!$new_unit_id and $unit_id == -2)) { # create unit per item