diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-02-17 16:29:56 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-02-26 11:38:19 +0000 |
commit | acc750bb59db42a8d1b16d76159493d1672a44e6 (patch) | |
tree | ee2f421f91fb8e78dafde191f817f631b81be2bc | |
parent | 80d5e66ccc5b0d99db1391e035b584e9ae015339 (diff) |
[Bexley,TfL] Search all contacts for groups.
Might be exporting data for old categories.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Bexley.pm | 2 | ||||
-rw-r--r-- | perllib/FixMyStreet/Cobrand/TfL.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Bexley.pm b/perllib/FixMyStreet/Cobrand/Bexley.pm index 275d7dfaf..0586c18c4 100644 --- a/perllib/FixMyStreet/Cobrand/Bexley.pm +++ b/perllib/FixMyStreet/Cobrand/Bexley.pm @@ -212,7 +212,7 @@ sub dashboard_export_problems_add_columns { my %groups; if ($c->stash->{body}) { - %groups = FixMyStreet::DB->resultset('Contact')->active->search({ + %groups = FixMyStreet::DB->resultset('Contact')->search({ body_id => $c->stash->{body}->id, })->group_lookup; } diff --git a/perllib/FixMyStreet/Cobrand/TfL.pm b/perllib/FixMyStreet/Cobrand/TfL.pm index d1cfb8d42..40c2a5257 100644 --- a/perllib/FixMyStreet/Cobrand/TfL.pm +++ b/perllib/FixMyStreet/Cobrand/TfL.pm @@ -244,7 +244,7 @@ sub dashboard_export_problems_add_columns { my %groups; if ($c->stash->{body}) { - %groups = FixMyStreet::DB->resultset('Contact')->active->search({ + %groups = FixMyStreet::DB->resultset('Contact')->search({ body_id => $c->stash->{body}->id, })->group_lookup; } |