[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
Sun Dec 27 19:50:06 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26417
Victor Grousset/tuxayo <victor at tuxayo.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #109790|0 |1
is obsolete| |
--- Comment #4 from Victor Grousset/tuxayo <victor at tuxayo.net> ---
Created attachment 114710
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114710&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
(<)"
Signed-off-by: Victor Grousset/tuxayo <victor at tuxayo.net>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list