Bug 23463: Fix wrong variable name
Fix for t/db_dependent/Labels/t_Batch.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
313b47c94e
commit
243a5395de
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue