aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-20 15:13:50 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-20 15:13:50 +0000
commitcab137c004bab860ff1a98f000d659aba1781835 (patch)
tree800be9cdf64ebaab46617e3153475181ab3138c4 /perllib
parenta92354b7d65d172723c5d1e0c6054fb069229c96 (diff)
Fetch needed column.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Zurich.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Zurich.pm b/perllib/FixMyStreet/Cobrand/Zurich.pm
index d21dade0d..75374f0f5 100644
--- a/perllib/FixMyStreet/Cobrand/Zurich.pm
+++ b/perllib/FixMyStreet/Cobrand/Zurich.pm
@@ -590,8 +590,8 @@ sub admin_stats {
);
if ( $c->req->params->{export} ) {
- my $problems = $c->model('DB::Problem')->search( { %params }, { columns => [ 'id', 'created', 'latitude', 'longitude', 'cobrand' ] } );
- my $body = 'ID,Created,E,N,Category';
+ my $problems = $c->model('DB::Problem')->search( { %params }, { columns => [ 'id', 'created', 'latitude', 'longitude', 'cobrand', 'category' ] } );
+ my $body = "ID,Created,E,N,Category\n";
while (my $report = $problems->next) {
$body .= join( ',', $report->id, $report->created, $report->local_coords, $report->category ) . "\n";
}