Bugzilla – Attachment 193595 Details for
Bug 41904
"Use of uninitialized value..." warning in del_message.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41904: "Use of uninitialized value..." warning in del_message.pl
7da9674.patch (text/plain), 1.42 KB, created by
David Nind
on 2026-02-21 02:55:46 UTC
(
hide
)
Description:
Bug 41904: "Use of uninitialized value..." warning in del_message.pl
Filename:
MIME Type:
Creator:
David Nind
Created:
2026-02-21 02:55:46 UTC
Size:
1.42 KB
patch
obsolete
>From 7da96746e8b8b713f622bc09ffe1d534eb0327d0 Mon Sep 17 00:00:00 2001 >From: Roman Dolny <roman.dolny@jezuici.pl> >Date: Fri, 20 Feb 2026 19:25:44 +0000 >Subject: [PATCH] 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 >--- > circ/del_message.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/circ/del_message.pl b/circ/del_message.pl >index 7218c7750e..c68d2f9621 100755 >--- a/circ/del_message.pl >+++ b/circ/del_message.pl >@@ -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"); >-- >2.39.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41904
:
193594
| 193595