From: Bill Erickson Date: Mon, 15 Apr 2019 18:38:14 +0000 (+0000) Subject: JBAS-2202 Update items update api fix X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9324a1d8d79f1db330854c19bbe9b197b925ab14;p=working%2FEvergreen.git JBAS-2202 Update items update api fix Fix an inconsistency between how the KCLS update-items interface calls the volume save API in some cases with un-fleshed copies. Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm index f36e753cba..f7769eeecd 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm @@ -1174,7 +1174,7 @@ sub fleshed_volume_update { $vol->editor($reqr->id); $vol->edit_date('now'); - my $copies = $vol->copies; + my $copies = $vol->copies || []; $vol->clear_copies; $vol->editor($editor->requestor->id);