From 5f36ca09e35dd0282e72a8f76985f56f38959414 Mon Sep 17 00:00:00 2001 From: Lyon3 Team Date: Tue, 3 Jul 2012 10:09:50 +0200 Subject: [PATCH] useDaysMode syspref did not apply correct incorrect parameter on sql query and inverted key-value hash (Calendar.pm) --- Koha/Calendar.pm | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index f31edf2..057bbc3 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -65,7 +65,7 @@ sub _init { } $self->{exception_holidays} = DateTime::Set->from_datetimes( dates => $dates ); - $special->execute( $branch, 1 ); + $special->execute( $branch, 0 ); $dates = []; while ( my ( $day, $month, $year, $title, $description ) = $special->fetchrow ) { @@ -150,7 +150,7 @@ sub is_holiday { $dt->truncate( to => 'day' ); my $day = $dt->day; my $month = $dt->month; - if ( exists $self->{day_month_closed_days}->{$month}->{$day} ) { + if ( exists $self->{day_month_closed_days}->{$day}->{$month} ) { return 1; } if ( $self->{exception_holidays}->contains($dt) ) { -- 1.7.2.5