From 8e014ad644d5d5432c8108654d052d9abbaa368a 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 Signed-off-by: Jonathan Druart --- 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.39.5