diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-23 17:09:00 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-10-23 17:09:02 +0100 |
commit | b951485e5c225f02933bcd8f3be2f4a3d3c7f034 (patch) | |
tree | c4c0dd69de8e75781db9eef6119bcf249929315b /perllib | |
parent | a94e6feb1c2da0a2387f4e4c26cd0d6832a15116 (diff) |
Don't generate local coords in CSV if unasked for.
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Dashboard.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Dashboard.pm b/perllib/FixMyStreet/App/Controller/Dashboard.pm index 4b43be081..7979f31f6 100644 --- a/perllib/FixMyStreet/App/Controller/Dashboard.pm +++ b/perllib/FixMyStreet/App/Controller/Dashboard.pm @@ -446,7 +446,7 @@ sub generate_csv : Private { split ',', $hashref->{areas}; } - if ($obj->can('local_coords')) { + if ($obj->can('local_coords') && $asked_for{local_coords_x}) { ($hashref->{local_coords_x}, $hashref->{local_coords_y}) = $obj->local_coords; } |