From d4f842a39858cf052d8c3dadb9660a97fcd7ccab 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. --- 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.20.1