From 4e2fd7b609be51c763d4ba0c4becd28dfd8bb756 Mon Sep 17 00:00:00 2001 From: Andreas Jonsson Date: Tue, 23 Jun 2020 15:57:29 +0200 Subject: [PATCH] Bug 25850: Adapt day of week in Koha::Calendar::get_push_amt to 0..6 with 0 being Sunday. --- Koha/Calendar.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index ef397cd838..a3d3a1d0d1 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -240,7 +240,7 @@ sub get_push_amt { # We're using Dayweek useDaysMode option $self->{days_mode} eq 'Dayweek' && # It's not a permanently closed day - !$self->{weekly_closed_days}->[$dow] == 1 + !$self->{weekly_closed_days}->[$dow % 7] ) ? 7 : 1; } -- 2.11.0