diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-06-22 14:53:59 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-06-22 19:38:37 +0100 |
commit | 58a7df7603b657e8b56bae9b46a0451b4534e9ad (patch) | |
tree | 6f0dc37b269cef2e633de5c88e323bc4829d539e | |
parent | 230882043f4e9eabb01f12251e4a6b961df08353 (diff) |
[Hounslow] Allow two email categories to be shown.
By default, devolved categories are not shown.
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Hounslow.pm | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Hounslow.pm b/perllib/FixMyStreet/Cobrand/Hounslow.pm index f37fec6a7..5ce22762f 100644 --- a/perllib/FixMyStreet/Cobrand/Hounslow.pm +++ b/perllib/FixMyStreet/Cobrand/Hounslow.pm @@ -65,8 +65,14 @@ sub categories_restriction { # Email categories with a devolved send_method, so can identify Open311 # categories as those which have a blank send_method. return $rs->search({ - 'me.send_method' => undef, 'body.name' => [ 'Hounslow Borough Council', 'Highways England' ], + -or => [ + 'me.send_method' => undef, + 'me.category' => { -in => [ + 'Pavement Overcrowding', + 'Streetspace Suggestions and Feedback', + ] }, + ], }); } |