From 9324a1d8d79f1db330854c19bbe9b197b925ab14 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 15 Apr 2019 18:38:14 +0000 Subject: [PATCH] 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 --- Open-ILS/src/perlmods/lib/OpenILS/Application/Cat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0