aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2011-05-25 16:11:07 +0100
committerMatthew Somerville <matthew@mysociety.org>2011-05-25 16:11:07 +0100
commitc5ace4f09cb6a31942a4be688f883ca141ca6649 (patch)
tree0c534b1580b8863614d4ff9b6b720fe7835ff268 /perllib/FixMyStreet/App/Controller/Report.pm
parentfe35ddba0fab0ebc413300dff0f1f323aec40e9a (diff)
Get rid of pointless and hard-to-follow listrefs when referring to pins.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index ae3dd5291..82f553d71 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -156,7 +156,11 @@ sub generate_map_tags : Private {
longitude => $problem->longitude,
type => 0,
pins => $problem->used_map
- ? [ [ $problem->latitude, $problem->longitude, 'blue' ] ]
+ ? [ {
+ latitude => $problem->latitude,
+ longitude => $problem->longitude,
+ colour => 'blue',
+ } ]
: [],
);
$c->stash->{map_js} = FixMyStreet::Map::header_js();