From c626a1439e4b320e49391d5e92a341db0f940528 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 21 Nov 2012 12:54:46 -0300 Subject: [PATCH] Bug 9078 - fixing exceptions broke tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixing the holiday exceptions arised a problem with how the test data was constructed. This made several tests fail. This patch fixes the add_holiday function. Tests should pass now. Sponsored-by: Universidad Nacional de Córdoba --- Koha/Calendar.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index ee63e73..90069b6 100644 --- a/Koha/Calendar.pm +++ b/Koha/Calendar.pm @@ -329,9 +329,9 @@ sub clear_weekly_closed_days { sub add_holiday { my $self = shift; my $new_dt = shift; - my @dt = $self->{exception_holidays}->as_list; + my @dt = $self->{single_holidays}->as_list; push @dt, $new_dt; - $self->{exception_holidays} = + $self->{single_holidays} = DateTime::Set->from_datetimes( dates => \@dt ); return; -- 1.7.9.5