The repeating holidays structure was being loaded in
a different order to how it was tested
---
Koha/Calendar.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Koha/Calendar.pm b/Koha/Calendar.pm
index 298cdb2..7214f39 100644
--- a/Koha/Calendar.pm
+++ b/Koha/Calendar.pm
@@ -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;
}
my $special = $dbh->prepare(
--
1.7.12.rc2.18.g61b472e
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/