Bug 14765

Summary: newHolidays.pl doesn't handle unexpected input very well
Product: Koha Reporter: Joonas Kylmälä <joonas.kylmala>
Component: HolidaysAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

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."