Bug 36413

Summary: authority search staff broken
Product: Koha Reporter: Hugo Agud <hagud>
Component: CatalogingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: m.de.rooy
Version: 23.11   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35989
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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 ***