From 5884f5e778cf343d2346b0d6d7506499b6876c09 Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Tue, 6 Jan 2026 19:53:54 +0000 Subject: [PATCH] Bug 22439: (QA follow-up) add generate_marc_host_field to api/v1/items --- Koha/REST/V1/Items.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Koha/REST/V1/Items.pm b/Koha/REST/V1/Items.pm index 5e8175a61fd..ddca3fc13ab 100644 --- a/Koha/REST/V1/Items.pm +++ b/Koha/REST/V1/Items.pm @@ -321,7 +321,8 @@ sub add_to_bundle { my $link = $item->add_to_bundle( $bundle_item, $options ); if ($add_link) { - $bundle_item->biblio->link_marc_host( { host => $item->biblio } ); + my $field = $bundle_item->biblio->generate_marc_host_field( { item => $item } ); + $bundle_item->biblio->link_marc_host( { field => $field } ); } return $c->render( status => 201, -- 2.39.5