Bug 40559

Summary: Fix a noisy warn in catalogue/MARCdetail
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: Architecture, internals, and plumbingAssignee: Marcel de Rooy <m.de.rooy>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: dcook
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 40559: Fix noisy warning in MARCdetail

Description Marcel de Rooy 2025-07-31 07:54:05 UTC
Actually a long standing fix already..
Comment 1 Marcel de Rooy 2025-07-31 09:02:40 UTC
Created attachment 184919 [details] [review]
Bug 40559: Fix noisy warning in MARCdetail

Rebased for 25.06.
Resolves:
    [2025/07/31 10:59:02] [WARN] Use of uninitialized value in string eq at /usr/share/koha/catalogue/MARCdetail.pl line 203.

Test plan:
Check if warn disappears with this patch.
Trigger the warn by opening catalogue/MARCdetail on staff view. (Should
be enough with a normal MARC record.)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 2 Marcel de Rooy 2025-07-31 09:03:20 UTC
Trivial. Self SO