[Koha-bugs] [Bug 26417] Remove warn in Koha::Patron is_valid_age
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Sep 9 13:57:24 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26417
--- Comment #1 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 109790
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=109790&action=edit
Bug 26417: Remove warn in Koha::Patron is_valid_age
In Koha::Patron is_valid_age the is a compare : $age < $low
But $low may be undef.
It generates a warn :
Use of uninitialized value $low in numeric lt (<)
Needs a test like for $high.
Test plan :
1) Run prove t/db_dependent/Koha/Patrons.t
2) Edit a patron catetory, empty "Age required" and save
3) Edit a patron of this category
4) Check in logs you don't see "Use of uninitialized value $low in numeric lt
(<)"
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list