[Koha-bugs] [Bug 14522] Use Koha::Cache for accessing single_holidays()

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Sep 22 05:06:43 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14522

--- Comment #8 from Mason James <mtj at kohaaloha.com> ---
(In reply to James from comment #6)
> Problem in testing, when trying to create holidays using patch the date
> format is being read incorrectly resulting in the following message for a
> holiday range ending on 26th November:
> 
> Software error:
> 
> The 'month' parameter ("26") to DateTime::new did not pass the 'an integer
> between 1 and 12' callback
>  at /usr/lib/perl5/DateTime.pm line 199
> 	DateTime::new(undef, 'year', 2015, 'month', 26, 'day', 11) called at
> /home/koha/src/tools/newHolidays.pl line 67


hmm, this bug seems to be caused by...

1/ loading the /cgi-bin/koha/tools/holidays.pl page
2/ changing the 'dateformat' syspref
3/ creating a new holiday, without first reloading the existing holidays.pl
page

..as this sequence of events is quite rare, and would only occur during
deliberate testing - i think this bug is a effectively a WONTFIX

FYI: this bug is reproducible without this patch, and has likely existed since
the introduction of the calendar/holidays feature in 2006.

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


More information about the Koha-bugs mailing list