The Koha::Calendar->addDate method actually expects a 'Duration', either as a DateTime::Duration object or as an integer and a unit definition. It would be better-called addDuration to reflect it's nature.
Created attachment 115279 [details] [review] Bug 25802: changing addDate method to addDuration 1. check using git grep command that addDate does not exist 2. check the patch that addDuration is spelt right 3. Check that tests pass t/Calendar.t
Created attachment 115341 [details] [review] Bug 25802: Change addDate to addDuration 1. Check using git grep command that addDate does not exist 2. Check the patch that addDuration is spelt right 3. Check that tests pass t/Calendar.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Excellent work, thanks for your contribution and welcome to the community. Signing off.
Created attachment 115614 [details] [review] Bug 25802: Change addDate to addDuration 1. Check using git grep command that addDate does not exist 2. Check the patch that addDuration is spelt right 3. Check that tests pass t/Calendar.t Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Pushed to master for 21.05, thanks to everybody involved!
Enhancement not pushed to 20.11.x