aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-05-27 13:33:27 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-05-27 13:33:27 +0100
commit8a03006831b2ad47f1dc1b066aa2af951ff29001 (patch)
tree164e37206bad0acfbde21aeed09e25a2ef48d80e /perllib/FixMyStreet/App/Controller/Report.pm
parent7b7e00c16f6d31ff77b9f28e63aac3b608f2bfbb (diff)
parent901834444846905c85e56528b020bd1a667cb5d2 (diff)
Merge branch 'he-still-bit-buggy-grr'
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm
index 8a6047194..4d8794c59 100644
--- a/perllib/FixMyStreet/App/Controller/Report.pm
+++ b/perllib/FixMyStreet/App/Controller/Report.pm
@@ -703,9 +703,8 @@ sub stash_category_groups : Private {
my %category_groups = ();
for my $category (@$contacts) {
- my $group = $category->{group} // $category->get_extra_metadata('group') // [''];
- # this could be an array ref or a string
- my @groups = ref $group eq 'ARRAY' ? @$group : ($group);
+ my $group = $category->{group} // $category->groups;
+ my @groups = @$group;
if (scalar @groups > 1 && $combine_multiple) {
@groups = sort @groups;
$category->{group} = \@groups;