From 5a2506a849b3848045482987e166da09e2d72d43 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 May 2020 16:04:27 +0200 Subject: [PATCH] Bug 23081: [19.11.x] Set items.issues to 0 if not provided (AddItem) In master it has been replaced by Koha::Object->store and we deal with the default value. Signed-off-by: Joy Nelson --- C4/Items.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Items.pm b/C4/Items.pm index 2e83b0674b..5d0495b8b2 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -1618,7 +1618,7 @@ sub _koha_new_item { $item->{'location'}, $item->{'permanent_location'}, $item->{'onloan'}, - $item->{'issues'}, + $item->{'issues'}//0, $item->{'renewals'}, $item->{'reserves'}, $item->{'items.cn_source'}, -- 2.39.5