From afc860d66bd706a80fe1b6404b648aa4592f3f79 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=utf8 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 Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer Passed-QA-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- Koha/Calendar.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm index ee63e73b1f..90069b6a89 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; -- 2.39.5