aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Mytton <chrismytton@gmail.com>2019-11-22 11:54:47 +0000
committerChris Mytton <chrismytton@gmail.com>2019-11-22 11:54:47 +0000
commit1cba9999480ecd8bbd3b0e28aae1c74e37dbf0eb (patch)
treef810b3b4f4b2571c1b28202cdf75981d81309ac6
parent399a38c4636fac6ce4a2eb21053604ba74309a36 (diff)
[Peterborough] Include email categories on cobrand
They've requested that these be added to the cobrand now.
-rw-r--r--perllib/FixMyStreet/Cobrand/Peterborough.pm13
1 files changed, 0 insertions, 13 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Peterborough.pm b/perllib/FixMyStreet/Cobrand/Peterborough.pm
index eb9208645..eb4ab815c 100644
--- a/perllib/FixMyStreet/Cobrand/Peterborough.pm
+++ b/perllib/FixMyStreet/Cobrand/Peterborough.pm
@@ -66,17 +66,4 @@ sub open311_munge_update_params {
$params->{description} = "[Customer FMS update] " . $params->{description};
}
-sub categories_restriction {
- my ($self, $rs) = @_;
- # Categories covering Peterborough have a mixture of Open311 and Email
- # send methods. Peterborough only want specific categories to be visible on
- # their cobrand, not the email categories from FMS.com.
- # The FMS.com categories have a devolved send_method set to Email, so we can
- # filter these out.
- return $rs->search( { -or => [
- 'me.send_method' => undef, # Open311 categories
- 'me.send_method' => '', # Open311 categories that have been edited in the admin
- ] } );
-}
-
1;