diff options
author | Struan Donald <struan@exo.org.uk> | 2017-11-30 15:19:39 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-12-15 17:35:53 +0000 |
commit | fb75d4f912c504b42d11f2c8f32b5dcff2b348b6 (patch) | |
tree | 794942f1aa5fff74c3dd40439764c1ad86456692 /perllib/FixMyStreet/Cobrand/FixMyStreet.pm | |
parent | f8f4d505ee63e3e8eb83576b3e3ce64c2b35c322 (diff) |
[fixmystreet.com] Marketing page, filterable stats
Uses the dashboard stats code to display a rough table of stats which
can be used as the basis for a chart later
Diffstat (limited to 'perllib/FixMyStreet/Cobrand/FixMyStreet.pm')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/FixMyStreet.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm index 2153ca33b..591234877 100644 --- a/perllib/FixMyStreet/Cobrand/FixMyStreet.pm +++ b/perllib/FixMyStreet/Cobrand/FixMyStreet.pm @@ -81,14 +81,13 @@ sub council_dashboard_hook { } $c->forward('/admin/fetch_contacts'); - $c->stash->{display_contacts} = 1; - return if $c->user->is_superuser; + $c->detach('/reports/summary') if $c->user->is_superuser; my $body = $c->user->from_body || _user_to_body($c); if ($body) { # Matching URL and user's email body - return if $body->id eq $c->stash->{body}->id; + $c->detach('/reports/summary') if $body->id eq $c->stash->{body}->id; # Matched /a/ body, redirect to its summary page $c->stash->{body} = $body; |