Bug 31889: (follow-up) Correct item order
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 7 Nov 2022 09:42:21 +0000 (09:42 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Nov 2022 10:53:34 +0000 (07:53 -0300)
commitb1f3042922a21a90eaf504df7a0c5c03fa33845b
treebff140f4a146c32832ffda72d84fa956788d0fd5
parentfc90a41699060e56ce3ac920d02e8f5f2004ef8c
Bug 31889: (follow-up) Correct item order

MARC::Record::insert_fields_ordered reverses the order of fields
with the same tag. So we need to reverse the input order here.

This made Exporter/Record.t fail.

Test plan:
Run t/db_dependent/Koha/Biblio/Metadata.t
Run t/db_dependent/Exporter/Record.t (should pass now)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Biblio/Metadata.pm