diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-09-19 13:44:43 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2019-09-20 15:25:29 +0100 |
commit | 7725488319ed2ae791fd993485ec34e9363e5844 (patch) | |
tree | f9cc357e9920f1f7c2398a1c26ab13477c18df41 /perllib/FixMyStreet/App/Controller/Report/New.pm | |
parent | 11bbbf3de54071d600d159f78a596ce01ce9a418 (diff) |
[Open311] Spot <groups> parameter rather than CSV.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report/New.pm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm index 9a18d0e32..554fbc3b7 100644 --- a/perllib/FixMyStreet/App/Controller/Report/New.pm +++ b/perllib/FixMyStreet/App/Controller/Report/New.pm @@ -771,8 +771,6 @@ sub setup_categories_and_bodies : Private { my %category_groups = (); for my $category (@category_options) { my $group = $category->{group} // $category->get_extra_metadata('group') // ['']; - # multiple groups from open311 can contain " which upsets the html so strip them - $group =~ s/^"|"$//g; # this could be an array ref or a string my @groups = ref $group eq 'ARRAY' ? @$group : ($group); push( @{$category_groups{$_}}, $category ) for @groups; |