diff options
author | Struan Donald <struan@exo.org.uk> | 2018-05-16 14:35:57 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-08-06 09:39:42 +0100 |
commit | cc3e8bd6e93fd293934d8697e0daea58494ad28f (patch) | |
tree | 6ef5483d04e678407f3889d9f09fbd27bbe5b217 /t | |
parent | 18e74eeb512c2824ca43c54fead5ba63d04f361b (diff) |
allow front end to not send to specific body
add a do_not_send parameter to reports which allows the front end to specify a
comma separated list of bodies that reports should not be sent to even if
there is a valid contact match. This enables asset layers to override backend
body processing, e.g. if a body only accepts reports that are on a road this
allows the front end to specify that.
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/report_new.t | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t index 8c4deec56..048f2644e 100644 --- a/t/app/controller/report_new.t +++ b/t/app/controller/report_new.t @@ -967,6 +967,13 @@ foreach my $test ( extra_fields => { single_body_only => 'Invalid council' }, email_count => 1, }, + { + desc => "test do_not_send means body is ignored", + category => 'Street lighting', + councils => [ 2326 ], + extra_fields => { do_not_send => 'Gloucestershire County Council' }, + email_count => 1, + }, ) { subtest $test->{desc} => sub { |