From: Nahuel ANGELINETTI <nahuel.angeline...@biblibre.com>

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 cd00424..92cc10d 100755
--- a/reports/issues_stats.pl
+++ b/reports/issues_stats.pl
@@ -337,8 +337,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
Koha-patches@lists.koha.org
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to