From bcdc5a3b37ffe34709e5bcbbb2a31d552be526ae Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 20 Oct 2022 14:27:25 +0000 Subject: [PATCH] Bug 31889: Replace append_fields in _embed_items Content-Type: text/plain; charset=utf-8 Test plan: Run t/db_dependent/Koha/Biblio/Metadata.t again. Should pass. Signed-off-by: Marcel de Rooy --- Koha/Biblio/Metadata.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Biblio/Metadata.pm b/Koha/Biblio/Metadata.pm index 78361ab261..09291b2f8a 100644 --- a/Koha/Biblio/Metadata.pm +++ b/Koha/Biblio/Metadata.pm @@ -172,7 +172,7 @@ sub _embed_items { my $item_marc = C4::Items::GetMarcItem( $biblionumber, $itemnumber ); push @item_fields, $item_marc->field($itemtag); } - $record->append_fields(@item_fields); + $record->insert_fields_ordered(@item_fields); } else { -- 2.30.2