From 243a5395de9be3e3971ae8171a8b2b3aa79e74bb Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 23 Mar 2020 11:36:55 +0100 Subject: [PATCH] Bug 23463: Fix wrong variable name Fix for t/db_dependent/Labels/t_Batch.t Signed-off-by: Martin Renvoize --- C4/Items.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Items.pm b/C4/Items.pm index a2cd03b3c9..f195024986 100644 --- a/C4/Items.pm +++ b/C4/Items.pm @@ -253,9 +253,9 @@ sub AddItemBatchFromMarc { my $item_object = Koha::Item->new($item)->store; push @itemnumbers, $item_object->itemnumber; # FIXME not checking error - logaction("CATALOGUING", "ADD", $item->itemnumber, "item") if C4::Context->preference("CataloguingLog"); + logaction("CATALOGUING", "ADD", $item_object->itemnumber, "item") if C4::Context->preference("CataloguingLog"); - my $new_item_marc = _marc_from_item_hash($item->unblessed, $frameworkcode, $unlinked_item_subfields); + my $new_item_marc = _marc_from_item_hash($item_object->unblessed, $frameworkcode, $unlinked_item_subfields); $item_field->replace_with($new_item_marc->field($itemtag)); } -- 2.39.5