aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-04-03 10:55:03 +0100
committerDave Arter <davea@mysociety.org>2018-04-03 12:44:26 +0100
commitdeb44732fd539e177935302b264584591d26b100 (patch)
tree2a8e7872370552e306de716e509d6a784c47decc
parent681099b9d58ce1064d9c2e0153e403dd2a2b86b3 (diff)
[Buckinghamshire] Hide district-level categories from cobrand
-rw-r--r--perllib/FixMyStreet/Cobrand/Buckinghamshire.pm7
-rw-r--r--templates/web/buckinghamshire/report/new/top_message.html0
2 files changed, 7 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
index e57df5997..49e87a1d0 100644
--- a/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
+++ b/perllib/FixMyStreet/Cobrand/Buckinghamshire.pm
@@ -289,4 +289,11 @@ sub is_council_with_case_management { 1 }
# Try OSM for Bucks as it provides better disamiguation descriptions.
sub get_geocoder { 'OSM' }
+sub categories_restriction {
+ my ($self, $rs) = @_;
+ # Buckinghamshire is a two-tier council, but only want to display
+ # county-level categories on their cobrand.
+ return $rs->search( { 'body.id' => 2217 } );
+}
+
1;
diff --git a/templates/web/buckinghamshire/report/new/top_message.html b/templates/web/buckinghamshire/report/new/top_message.html
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/templates/web/buckinghamshire/report/new/top_message.html