Bug 8418: load repeating holidays hash correctly
authorColin Campbell <colin.campbell@ptfs-europe.com>
Tue, 14 Aug 2012 14:38:05 +0000 (15:38 +0100)
committerPaul Poulain <paul.poulain@biblibre.com>
Fri, 14 Sep 2012 12:53:58 +0000 (14:53 +0200)
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>
Koha/Calendar.pm

index 7608dce..2a2e062 100644 (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;
     }