Bug 14765 - newHolidays.pl doesn't handle unexpected input very well
Summary: newHolidays.pl doesn't handle unexpected input very well
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Holidays (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-01 05:32 UTC by Joonas Kylmälä
Modified: 2015-09-01 05:32 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Kylmälä 2015-09-01 05:32:41 UTC
If I call new holidays without any parameters I get the error: "No branchcode argument to new.  Should be C4::Calendar->new(branchcode => $branchcode) at /home/putti/kohaclone/tools/newHolidays.pl line 87." and also if there is malformed date in the input I get "Date::Calc::Day_of_Week(): not a valid date at /home/putti/kohaclone/C4/Calendar.pm line 609."