Bug 36413 - authority search staff broken
Summary: authority search staff broken
Status: RESOLVED DUPLICATE of bug 35989
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: 23.11
Hardware: All All
: P5 - low major (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-25 09:52 UTC by Hugo Agud
Modified: 2024-04-12 07:09 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hugo Agud 2024-03-25 09:52:21 UTC
When searching an authority from staff search, it returns

Error: Unmatched [ in regex; marked by <-- HERE in m/^[ <-- HERE ]$/ at /usr/share/perl5/MARC/Field.pm line 643.

the issue might stem from how the $subfields string is used in the regex within the conditional if statement. If $subfields contains special regex characters, especially an unmatched [, it could cause the regex engine to throw an error due to an invalid pattern.
Comment 1 Katrin Fischer 2024-03-25 16:11:27 UTC
This reads like this bug:

Bug 35989 - Searching Geographic authorities generates error

Maybe a duplicate?
Comment 2 Hugo Agud 2024-04-12 07:09:06 UTC
yes it seems it is the same

*** This bug has been marked as a duplicate of bug 35989 ***