Bug 16796 - Patron categories: Crash if enrolment date is not valid
Summary: Patron categories: Crash if enrolment date is not valid
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Galen Charlton
QA Contact: Testopia
URL:
Keywords:
Depends on: 14060
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-22 06:06 UTC by Marc Véron
Modified: 2020-01-06 20:17 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 16976 - Authorities searches with double quotes gives ZOOM error 20003 [Alternate] (1.20 KB, patch)
2017-06-16 10:41 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Véron 2016-06-22 06:06:58 UTC
To reproduce:
- Create or edit a patron category
- Leve enrolment period empty
- Manually enter wrong enrolment date, e.g. 99/99/2016 and save.
Result:

Software error:
The 'day' parameter ("99") to DateTime::new did not pass the 'an integer which is a possible valid day of month' callback
 at /usr/lib/perl5/DateTime.pm line 199
	DateTime::new(undef, 'hour', 0, 'minute', 0, 'second', 0, 'month', 06, ...) called at /usr/share/kohaclone/Koha/DateUtils.pm line 172
	Koha::DateUtils::dt_from_string(99.06.2016) called at /usr/share/kohaclone/admin/categories.pl line 98
Comment 1 Marc Véron 2016-08-10 07:52:10 UTC
Still valid.
Comment 2 Nick Clemens (kidclamp) 2017-06-16 10:41:37 UTC Comment hidden (obsolete)
Comment 3 Katrin Fischer 2019-02-10 20:56:19 UTC
I've tried, but I always get told my date is invalid :)