| Summary: | Perl error when adding a range of holidays without To: date | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
| Component: | Holidays | Assignee: | Henri-Damien LAURENT <henridamien> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Ian Walls <koha.sekjal> |
| Severity: | normal | ||
| Priority: | P5 - low | CC: | christophe.croullebois, veron |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Patch complexity: | --- |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
| Bug Depends on: | |||
| Bug Blocks: | 6663 | ||
Hello Katrin, I am quite sure that in the 7351 we have a fix of this bug, try to test with it, I have changed also for creating on a range, in my memory I have chosen the option to do nothing, lighter than a warning window. So, if you don't fill the "to", koha does nothing, and you can see that on the calendar. I could reprocuce the error with Koha version: 3.08.00.000 Then I applied Patch 7351 and tested. Error was gone. 7351 is marked as Signed Off Marking this Bug as RESOLVED FIXED Marc |
To reproduce: Add a range of holidays using either - Holidays on a range or - Holidays repeated yearly on a range and leave the 'To:' date empty. Following error will be shown: Software error: The 'month' parameter (undef) to DateTime::new was an 'undef', which is not one of the allowed types: scalar at /usr/lib/perl5/DateTime.pm line 200 DateTime::new(undef, 'year', undef, 'month', undef, 'day', undef) called at /home/katrin/kohaclone/tools/newHolidays.pl line 129 main::add_holiday('holidayrangerepeat', 'PVL', 4, 26, 4, 2012, '', '') called at /home/katrin/kohaclone/tools/newHolidays.pl line 66 For help, please send mail to the webmaster (webmaster@bumblebee), giving this error message and the time and date of the error.