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/Dashboard.pm | |
parent | c6e723a2fee40f7009de3f04de5870693e12889e (diff) |
Consistent use of Contact groups.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Dashboard.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Dashboard.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Dashboard.pm b/perllib/FixMyStreet/App/Controller/Dashboard.pm index 52af45940..abb2e0988 100644 --- a/perllib/FixMyStreet/App/Controller/Dashboard.pm +++ b/perllib/FixMyStreet/App/Controller/Dashboard.pm @@ -493,8 +493,8 @@ sub generate_csv : Private { } if ($asked_for{subcategory}) { - my $group = $obj->contact && $obj->contact->get_extra_metadata('group') || ''; - $group = join(',', ref $group ? @$group : $group); + my $group = $obj->contact && $obj->contact->groups; + $group = join(',', @$group); if ($group) { $hashref->{subcategory} = $obj->category; $hashref->{category} = $group; |