[Koha-bugs] [Bug 27549] Warning "use of uninitialized value" on renew.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 25 16:38:17 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27549
--- Comment #1 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 115783
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=115783&action=edit
Bug 27549: "use of uninitialized value" warning on renew.pl
On the beginning we have empty "barcode" parameter for this form, but that not
taken into account in regular expression warning emitted: "Use of
uninitialized value $barcode in substitution (s///) at
/usr/share/koha/intranet/cgi-bin/circ/renew.pl line 47." in renew.pl
Fixed by making $barcode to become an empty string by default.
To reproduce:
1) Head over to the "Circulation -> Renew" page.
2) Check intranet-error.log there will be a warning "Use of uninitialized
value $barcode in substitution (s///) at
/usr/share/koha/intranet/cgi-bin/circ/renew.pl line 47".
3) Apply the patch, refresh the "Renew" page.
4) Ensure that the new "use of uninitialized value" warnings didn't appear
in the console.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list