diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-03-24 17:14:58 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-03-24 17:14:58 +0000 |
commit | 5c1343fb6d14dd8fb44b2cc626619845097b90a9 (patch) | |
tree | 8ebaf6e2733f0ea711f83c57e540a50ad95367f8 /perllib/FixMyStreet/App/Controller | |
parent | 86aa0977730fcf99b9d6be2c0c9af7698cbdf23c (diff) |
Close off map correctly
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Reports/New.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports/New.pm b/perllib/FixMyStreet/App/Controller/Reports/New.pm index 47dbfaa89..80bf6abf8 100644 --- a/perllib/FixMyStreet/App/Controller/Reports/New.pm +++ b/perllib/FixMyStreet/App/Controller/Reports/New.pm @@ -852,7 +852,7 @@ Add the html needed to for the map to the stash. =cut # FIXME - much of this should not happen here or in maps code but in the -# templates. +# templates. Perhaps also create a map 'None' to use when map is skipped. sub generate_map : Private { my ( $self, $c ) = @_; @@ -896,6 +896,10 @@ END_MAP_HTML pins => [ [ $latitude, $longitude, 'purple' ] ], ); } + + # get the closing for the map + $c->stash->{map_end} = FixMyStreet::Map::display_map_end(1); + return 1; } |