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: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 28b479d114)
Signed-off-by: Jacob O'Mara <Jacob.omara@openfifth.co.uk>
This commit is contained in:
Roman Dolny 2026-02-20 19:25:44 +00:00 committed by Jacob O'Mara
parent 37ce75189e
commit 4b01d06f92
No known key found for this signature in database
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");