diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-05-11 16:06:37 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-05-26 23:02:03 +0100 |
commit | 72809e405e690c88d0e2011802820c9ba215ef61 (patch) | |
tree | d176a6d42a2e6df68324965537c24251c8ca80b1 /perllib/FixMyStreet/App/Controller/My.pm | |
parent | c6e723a2fee40f7009de3f04de5870693e12889e (diff) |
Consistent use of Contact groups.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/My.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/My.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/My.pm b/perllib/FixMyStreet/App/Controller/My.pm index 316fe08b8..f5c06d926 100644 --- a/perllib/FixMyStreet/App/Controller/My.pm +++ b/perllib/FixMyStreet/App/Controller/My.pm @@ -198,7 +198,15 @@ sub setup_page_data : Private { order_by => [ "$table.category" ], } )->all; $c->stash->{filter_categories} = \@categories; - $c->forward('/report/stash_category_groups', [ \@categories ]) if $c->cobrand->enable_category_groups; + + if ($c->cobrand->enable_category_groups) { + my @contacts = map { { + category => $_->category, + category_display => $_->category_display, + group => [''], + } } @categories; + $c->forward('/report/stash_category_groups', [ \@contacts ]); + } my $pins = $c->stash->{pins}; FixMyStreet::Map::display_map( |