From 7ab11d5ea5721c37a7f7a7d3f0e275fb5ede331c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Mon, 23 Nov 2009 14:38:23 +0100 Subject: [PATCH] Bug 3806 - Holidays improperly sorted by date --- .../intranet-tmpl/prog/en/modules/tools/holidays.tmpl | 9 --------- tools/holidays.pl | 6 +++--- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl index 00ed09369e..7e0ef90a0f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/holidays.tmpl @@ -115,15 +115,6 @@ $("#holidayexceptions").tablesorter({ sortList: [[0,0]], widgets: ['zebra'] }); - $("#holidayweeklyrepeatable").tablesorter({ - sortList: [[0,0]], widgets: ['zebra'] - }); - $("#holidaysyearlyrepeatable").tablesorter({ - sortList: [[0,0]], widgets: ['zebra'] - }); - $("#holidaysunique").tablesorter({ - sortList: [[0,0]], widgets: ['zebra'] - }); }); //]]> diff --git a/tools/holidays.pl b/tools/holidays.pl index 5d7ab2ef64..abca5e7c7c 100755 --- a/tools/holidays.pl +++ b/tools/holidays.pl @@ -93,7 +93,7 @@ foreach my $weekday (keys %$week_days_holidays) { my $day_month_holidays = $calendar->get_day_month_holidays(); my @day_month_holidays; -foreach my $monthDay (keys %$day_month_holidays) { +foreach my $monthDay (sort keys %$day_month_holidays) { # Determine date format on month and day. my $day_monthdate; if (C4::Context->preference("dateformat") eq "metric") { @@ -113,7 +113,7 @@ foreach my $monthDay (keys %$day_month_holidays) { my $exception_holidays = $calendar->get_exception_holidays(); my @exception_holidays; -foreach my $yearMonthDay (keys %$exception_holidays) { +foreach my $yearMonthDay (sort keys %$exception_holidays) { my $exceptiondate = C4::Dates->new($exception_holidays->{$yearMonthDay}{date}, "iso"); my %exception_holiday; %exception_holiday = (KEY => $yearMonthDay, @@ -125,7 +125,7 @@ foreach my $yearMonthDay (keys %$exception_holidays) { my $single_holidays = $calendar->get_single_holidays(); my @holidays; -foreach my $yearMonthDay (keys %$single_holidays) { +foreach my $yearMonthDay (sort keys %$single_holidays) { my $holidaydate = C4::Dates->new($single_holidays->{$yearMonthDay}{date}, "iso"); my %holiday; %holiday = (KEY => $yearMonthDay, -- 2.39.5