(bug #3743) fix acquisition stats ordering
authorNahuel ANGELINETTI <nahuel.angelinetti@biblibre.com>
Wed, 12 Jan 2011 15:08:46 +0000 (10:08 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 12 Jan 2011 19:26:52 +0000 (08:26 +1300)
This patch fix ordering in acquisition stats to order by month number.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
reports/acquisitions_stats.pl

index 045a423..8220148 100755 (executable)
@@ -432,7 +432,7 @@ sub calculate {
         }
     }
     $strsth .= " GROUP BY $linefield";
-    $strsth .= " ORDER BY $linefield";
+    $strsth .= " ORDER BY $line";
 
     #warn "377:strsth= $strsth";
 
@@ -549,7 +549,7 @@ sub calculate {
 
 
     $strsth2 .= " GROUP BY $colfield";
-    $strsth2 .= " ORDER BY $colfield";
+    $strsth2 .= " ORDER BY $column";
 
     my $sth2 = $dbh->prepare($strsth2);