[Koha-bugs] [Bug 24480] Fields added with MARC modifications templates are not added in an ordered way

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu May 4 16:49:57 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24480

--- Comment #26 from Phil Ringnalda <phil at chetcolibrary.org> ---
Why use insert_grouped_field for move rather than insert_fields_ordered?

My vague memory of looking at it in 2020 says that it's because just using
$record->insert_fields_ordered( @new_fields ); winds up putting them in
reversed, so that if you say to move all 502 to 520 you go from

502 $aFirst
502 $aSecond

to

520 $aSecond
520 $aFirst

but if that was all it was, why not just reverse @new_fields before calling
insert_fields_ordered?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list