From 861d1b7f8215c36cef7fd5dd26b2964330e7197b Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Thu, 16 Jul 2020 16:34:26 +0000 Subject: [PATCH] Bug 15986: Update for bug 24159 The job is concerned with holds waiting and takes days, I think using days_mode 'Calendar' makes sense as we are not calculating due dates Signed-off-by: Kim Gnerre Signed-off-by: Martin Renvoize --- misc/cronjobs/holds_reminder.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/holds_reminder.pl b/misc/cronjobs/holds_reminder.pl index c409e405b3..d892ccfa49 100755 --- a/misc/cronjobs/holds_reminder.pl +++ b/misc/cronjobs/holds_reminder.pl @@ -233,7 +233,7 @@ foreach my $branchcode (@branchcodes) { #BEGIN BRANCH LOOP # If respecting calendar get the correct waiting since date my $waiting_date; if( $use_calendar ){ - my $calendar = Koha::Calendar->new( branchcode => $branchcode ); + my $calendar = Koha::Calendar->new( branchcode => $branchcode, days_mode => 'Calendar' ); my $duration = DateTime::Duration->new( days => -$days ); $waiting_date = $calendar->addDays($date_to_run,$duration); #Add negative of days } else { -- 2.20.1