aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Admin/Users.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-11-26 11:43:01 +0000
committerDave Arter <davea@mysociety.org>2019-12-09 12:48:12 +0000
commit61665b040781a0920b9586c558313cdeb17a99d6 (patch)
tree946173c1219a3d6481588abcbe355f1d85cd5b5e /perllib/FixMyStreet/App/Controller/Admin/Users.pm
parent7ad686bc1e05304b26c081856948847f192e1384 (diff)
Group categories on user edit page, if cobrand has grouping enabled
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Admin/Users.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin/Users.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Users.pm b/perllib/FixMyStreet/App/Controller/Admin/Users.pm
index 802fbb9f5..1520fe990 100644
--- a/perllib/FixMyStreet/App/Controller/Admin/Users.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin/Users.pm
@@ -394,8 +394,10 @@ sub edit : Chained('user') : PathPart('') : Args(0) {
id => $_->id,
category => $_->category,
active => $active_contacts{$_->id},
+ 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;
}
# this goes after in case we've delete any alerts