diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-09-06 15:00:17 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-09-10 09:56:14 +0100 |
commit | 61188780d1c79370bc584cbf0ed77298bbe66319 (patch) | |
tree | 7ab56f2a87b32822db4e472bc19da33338e6f3fc /web | |
parent | 8af0419a2e68e6afa3348138136032c280177ea4 (diff) |
[Buckinghamshire] Do not report on non-Bucks roads
Sending to Bucks reports made on non-Bucks roads was only disabled if
Bucks was the only body concerned; flytipping is a concern of both
tiers, but reports on non-Bucks roads should still not be sent to Bucks.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/buckinghamshire/assets.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/web/cobrands/buckinghamshire/assets.js b/web/cobrands/buckinghamshire/assets.js index 57b2317a4..541bdfc57 100644 --- a/web/cobrands/buckinghamshire/assets.js +++ b/web/cobrands/buckinghamshire/assets.js @@ -184,11 +184,13 @@ fixmystreet.assets.add($.extend(true, {}, defaults, { } hide_responsibility_errors(); enable_report_form(); - } else if (is_only_body(layer.fixmystreet.body)) { + } else { // User has clicked a road that Bucks don't maintain. fixmystreet.body_overrides.do_not_send(layer.fixmystreet.body); - show_responsibility_error("#js-not-council-road"); - disable_report_form(); + if (is_only_body(layer.fixmystreet.body)) { + show_responsibility_error("#js-not-council-road"); + disable_report_form(); + } } }, |