(bug #3546) fix issues_stats

This fix the order of columns.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
This commit is contained in:
Nahuel ANGELINETTI 2009-08-24 13:56:15 +02:00 committed by Henri-Damien LAURENT
parent f9ef9de6c1
commit 75b5e00152
1 changed files with 2 additions and 2 deletions

View File

@ -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' ) ?