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

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Laura Escamilla <laura.escamilla@bywatersolutions.com>
This commit is contained in:
Roman Dolny 2026-02-20 19:25:44 +00:00 committed by Laura Escamilla
parent 07e1f36a63
commit 42908f8c68
No known key found for this signature in database
GPG Key ID: 6B1D9CA1AF817BC3
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ if ( $message
$message->delete if $message && $op eq 'cud-delete';
if ( $input->param('from') eq "moremember" ) {
if ( $input->param('from') && $input->param('from') eq "moremember" ) {
print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$borrowernumber");
} else {
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber");