]> git.koha-community.org Git - koha.git/commit
Bug 26417: Remove warn in Koha::Patron is_valid_age
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 9 Sep 2020 11:54:34 +0000 (13:54 +0200)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Fri, 15 Jan 2021 22:02:38 +0000 (22:02 +0000)
commit12a8c4562bd5d95dcad51af109063fdfd7132944
tree30ebf39a573bf5c8b4e8a5a47ddfb0068108289c
parent91213377769b1caed0297e042daadf68cd45d069
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@tuxayo.net>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit f042c804cda09deaee614f73ec9a888bea4ab99a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit ba7cee5b17b13566fdf82019f5576db497d03bff)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Koha/Patron.pm