[Koha-bugs] [Bug 16796] New: Patron categories: Crash if enrolment date is not valid

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 22 08:06:58 CEST 2016


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

            Bug ID: 16796
           Summary: Patron categories: Crash if enrolment date is not
                    valid
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P5 - low
         Component: Architecture, internals, and plumbing
          Assignee: gmcharlt at gmail.com
          Reporter: veron at veron.ch
        QA Contact: testopia at bugs.koha-community.org

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

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


More information about the Koha-bugs mailing list