[Koha-bugs] [Bug 22805] When borrowers.dateofbirth is set to a date matching '0YYY-MM-DD', memberentry.pl crashes on save.

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Apr 30 03:51:05 CEST 2019


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

--- Comment #2 from Barton Chittenden <barton at bywatersolutions.com> ---
(In reply to Jonathan Druart from comment #1)
> Do you have a specific use case? :)
> 
> Koha::DateUtils considers that years are formed by 4 digits, 986 is not
> correctly parsed.

Jonathan, If you enter the date date of birth as '02/26/0986' *in
memberentry.pl* it gets saved as '0986-02-26' in the database. Somewhere in the
process of loading that into Koha::DateUtils, the leading 0 is lost, which
causes the crash -- '0986' is obviously a typo of '1986', and that's causing
the crash.

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


More information about the Koha-bugs mailing list