Bug 41904

Summary: "Use of uninitialized value..." warning in del_message.pl
Product: Koha Reporter: Roman Dolny <roman.dolny>
Component: PatronsAssignee: Roman Dolny <roman.dolny>
Status: Signed Off --- QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: gmcharlt, kyle
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: Sponsored Comma delimited list of Sponsors: Ignatianum University in Cracow
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Attachments: Bug 41904: "Use of uninitialized value..." warning in del_message.pl
Bug 41904: "Use of uninitialized value..." warning in del_message.pl

Description Roman Dolny 2026-02-20 19:21:41 UTC
The warning
[WARN] Use of uninitialized value in string eq at 
/kohadevbox/koha/circ/del_message.pl line 54.
appears in plack-intranet-error.log

To reproduce in KTD:
1. Observe plack-intranet-error.log
2. Search for any patron and go to "Check out" tab.
3. Add message for patron. Added message is shown in "Message" area
   with "Edit" and "Delete" links.
4. Click "Delete" and confirm modal.
5. Warning appears in plack-intranet-error.log
Comment 1 Roman Dolny 2026-02-20 19:34:18 UTC
Created attachment 193594 [details] [review]
Bug 41904: "Use of uninitialized value..." warning in del_message.pl

The warning
[WARN] Use of uninitialized value in string eq at
/kohadevbox/koha/circ/del_message.pl line 54.
appears in plack-intranet-error.log

Test plan:
==========
1. Observe plack-intranet-error.log
2. Search for any patron and go to "Check out" tab.
3. Add message for patron. Added message is shown in "Message" area
   with "Edit" and "Delete" links.
4. Click "Delete" and confirm modal.
5. Warning appears in plack-intranet-error.log
6. Apply the patch; restart_all
7. Repeat 3-4. No warning appears.

Sponsored-by: Ignatianum University in Cracow
Comment 2 David Nind 2026-02-21 02:55:46 UTC
Created attachment 193595 [details] [review]
Bug 41904: "Use of uninitialized value..." warning in del_message.pl

The warning
[WARN] Use of uninitialized value in string eq at
/kohadevbox/koha/circ/del_message.pl line 54.
appears in plack-intranet-error.log

Test plan:
==========
1. Observe plack-intranet-error.log
2. Search for any patron and go to "Check out" tab.
3. Add message for patron. Added message is shown in "Message" area
   with "Edit" and "Delete" links.
4. Click "Delete" and confirm modal.
5. Warning appears in plack-intranet-error.log
6. Apply the patch; restart_all
7. Repeat 3-4. No warning appears.

Sponsored-by: Ignatianum University in Cracow