[Koha-bugs] [Bug 31737] Fix CGI::param called in list context warning in smart-rules.pl

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 11 17:59:05 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31737

--- Comment #1 from Slava Shishkin <slavashishkin at gmail.com> ---
When UnseenRenewals syspref is disabled, the form param is not passed at all
when parsed it comes as undef, but the code tries directly to do
strip_non_numeric call on it. Thus the 'undef' warnings:

[WARN] Use of uninitialized value $string in substitution (s///) at
/kohadevbox/koha/admin/smart-rules.pl line 760.
[WARN] Use of uninitialized value $string in pattern match (m//) at
/kohadevbox/koha/admin/smart-rules.pl line 761.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list