diff options
author | Struan Donald <struan@exo.org.uk> | 2019-03-26 15:01:02 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2019-03-26 15:01:02 +0000 |
commit | 91d9e7102b7fc94cd899100ef5cd42e027c5beb7 (patch) | |
tree | 3f69a340d4a0128dc44f5a5d7b83e83202ef649c /perllib | |
parent | e469eac9e70f87a25be90cb4a194be47bc5e964e (diff) |
[Northamptonshire] only display NCC categories on cobrand
Diffstat (limited to 'perllib')
-rw-r--r-- | perllib/FixMyStreet/Cobrand/Northamptonshire.pm | 5 |
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' } |