aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Reports.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-07-13 10:58:07 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-21 17:37:47 +0100
commitef9850616c71d82980bdf77e001267a89337e1a8 (patch)
tree22ea4291b7f374589ba75a173027704f5bc0b599 /perllib/FixMyStreet/App/Controller/Reports.pm
parent17ebb70ee0e1d0452b824d3d8daee7405f5edf5c (diff)
Refactor map pin/feature functions.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Reports.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Reports.pm9
1 files changed, 1 insertions, 8 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports.pm b/perllib/FixMyStreet/App/Controller/Reports.pm
index eec180ba1..ddc75163a 100644
--- a/perllib/FixMyStreet/App/Controller/Reports.pm
+++ b/perllib/FixMyStreet/App/Controller/Reports.pm
@@ -485,14 +485,7 @@ sub stash_report_filter_status : Private {
sub add_row {
my ( $c, $problem, $body, $problems, $pins ) = @_;
push @{$problems->{$body}}, $problem;
- push @$pins, {
- latitude => $problem->latitude,
- longitude => $problem->longitude,
- colour => $c->cobrand->pin_colour( $problem, 'reports' ),
- id => $problem->id,
- title => $problem->title_safe,
- problem => $problem,
- };
+ push @$pins, $problem->pin_data($c, 'reports');
}
=head1 AUTHOR