Bug 9078 - fixing exceptions broke tests
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 <kyle@bywatersolutions.com> Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> Passed-QA-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
bd60418f9d
commit
3d0b417cb0
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue