aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-03-26 15:01:02 +0000
committerStruan Donald <struan@exo.org.uk>2019-03-26 15:01:02 +0000
commit91d9e7102b7fc94cd899100ef5cd42e027c5beb7 (patch)
tree3f69a340d4a0128dc44f5a5d7b83e83202ef649c /perllib
parente469eac9e70f87a25be90cb4a194be47bc5e964e (diff)
[Northamptonshire] only display NCC categories on cobrand
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/Cobrand/Northamptonshire.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Northamptonshire.pm b/perllib/FixMyStreet/Cobrand/Northamptonshire.pm
index 77af588ef..3af291a54 100644
--- a/perllib/FixMyStreet/Cobrand/Northamptonshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Northamptonshire.pm
@@ -33,6 +33,11 @@ sub disambiguate_location {
};
}
+sub categories_restriction {
+ my ($self, $rs) = @_;
+ return $rs->search( [ { 'body.name' => 'Northamptonshire County Council' } ], { join => { body => 'body_areas' } });
+}
+
sub send_questionnaires { 0 }
sub on_map_default_status { 'open' }