Bug 39425 - MarcFieldsToOrder should not error out on a duplicated field
Summary: MarcFieldsToOrder should not error out on a duplicated field
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low major
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 35026
Blocks:
  Show dependency treegraph
 
Reported: 2025-03-23 16:02 UTC by Nick Clemens (kidclamp)
Modified: 2025-03-25 12:32 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Clemens (kidclamp) 2025-03-23 16:02:15 UTC
If a field in MarcFieldsToOrder has two values

price: 020$c

When adding a staged file to a basket you get a 500 error and the logs say something like:
==> /var/log/koha/{site}/plack-error.log <==
Invalid number of fields detected on field 020, please check this file at /usr/share/koha/lib/Koha/MarcOrder.pm line 294.

We should find a way to handle this in the code, or at least provide meaningful feedback to the user