Bug 8418: load repeating holidays hash correctly

The repeating holidays structure was being loaded in
a different order to how it was tested

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Colin Campbell 2012-08-14 15:38:05 +01:00 committed by Paul Poulain
parent 37f3807442
commit f3ac37c8f4

View file

@ -45,7 +45,7 @@ sub _init {
$repeat_sth->execute( $branch, 1 );
$self->{day_month_closed_days} = {};
while ( my $tuple = $repeat_sth->fetchrow_hashref ) {
$self->{day_month_closed_days}->{ $tuple->{day} }->{ $tuple->{month} } =
$self->{day_month_closed_days}->{ $tuple->{month} }->{ $tuple->{day} } =
1;
}