[Koha-bugs] [Bug 28053] Warning in C4::Members::patronflags
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 30 13:57:37 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28053
Peter Vashchuk <stalkernoid at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #118989|0 |1
is obsolete| |
--- Comment #2 from Peter Vashchuk <stalkernoid at gmail.com> ---
Created attachment 118995
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=118995&action=edit
Bug 28053: Squash warning in C4::Members
This patch sets guarantess_non_issues_charges to '0' upon creation of
the variable and thus prevents 'Use of uninitialized value
$guarantees_non_issues_charges in numeric gt (>) at
/home/martin/kohaclone/C4/Members.pm line 183.' being thrown when the
patron has guaruntees without any charges.
Test plan
1. Run t/db_dependent/SIP/SIPServer.t and note the warning above is
thrown at least once.
2. Apply the patch
3. Run the test again and note the warning has gone.
Signed-off-by: Petro Vashchuk <stalkernoid at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list