diff options
author | Dave Arter <davea@mysociety.org> | 2019-11-26 14:36:17 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-12-09 12:48:12 +0000 |
commit | 9f99597cb802c800fcb4e3e06ec153182c004be4 (patch) | |
tree | 8915d6b30cd2bf0862734eea828813d3ce121d1a /perllib/FixMyStreet/App/Controller | |
parent | 61665b040781a0920b9586c558313cdeb17a99d6 (diff) |
Group categories on response template edit page, if cobrand allows
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/Templates.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Templates.pm b/perllib/FixMyStreet/App/Controller/Admin/Templates.pm index 97a62c2b8..efff1b488 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/Templates.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/Templates.pm @@ -69,8 +69,10 @@ sub edit : Path : Args(2) { category => $_->category_display, active => $active_contacts{$_->id}, email => $_->email, + group => $_->get_extra_metadata('group') // '', } } @live_contacts; $c->stash->{contacts} = \@all_contacts; + $c->forward('/report/stash_category_groups', [ \@all_contacts, 1 ]) if $c->cobrand->enable_category_groups; # bare block to use 'last' if form is invalid. if ($c->req->method eq 'POST') { { |