From 91d9e7102b7fc94cd899100ef5cd42e027c5beb7 Mon Sep 17 00:00:00 2001 From: Struan Donald Date: Tue, 26 Mar 2019 15:01:02 +0000 Subject: [Northamptonshire] only display NCC categories on cobrand --- perllib/FixMyStreet/Cobrand/Northamptonshire.pm | 5 +++++ templates/web/northamptonshire/report/new/top_message.html | 0 2 files changed, 5 insertions(+) create mode 100644 templates/web/northamptonshire/report/new/top_message.html 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' } diff --git a/templates/web/northamptonshire/report/new/top_message.html b/templates/web/northamptonshire/report/new/top_message.html new file mode 100644 index 000000000..e69de29bb -- cgit v1.2.3