This fix the order of columns.
---
 reports/issues_stats.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/reports/issues_stats.pl b/reports/issues_stats.pl
index df848bd..89fd72c 100755
--- a/reports/issues_stats.pl
+++ b/reports/issues_stats.pl
@@ -350,8 +350,8 @@ sub calculate {
        } else {
                $colfield = $column;
        }
-       $colorder = ($colfield =~ /dayname/) ? "weekday($line)" :
-                               ($colfield =~ /^month/ ) ? "  month($line)" : 
$colfield;
+       $colorder = ($colfield =~ /dayname/) ? "weekday($column)" :
+                               ($colfield =~ /^month/ ) ? "  month($column)" : 
$colfield;
        my $strsth2 = "SELECT distinctrow $colfield FROM statistics, ";
        # get stats on items if ccode or location, otherwise borrowers.
        $strsth2 .= ($colsource eq 'items' ) ?
-- 
1.6.0.4

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to