From 8efc8ad9934a02c2f816bfdd3c4a78d29b78760b 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..6a013d97d8e 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 = $item->biblio->generate_marc_host_field( { item => $item } ); + $bundle_item->biblio->link_marc_host( { field => $field } ); } return $c->render( status => 201, -- 2.39.5