aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-09-05 08:58:11 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-09-05 09:35:32 +0100
commit0d7d04f3a2e893ffa15c5700c83f9d4f6b83f06f (patch)
tree98abb67fa60cf489fc43f242348cd3100fc7851c /perllib/FixMyStreet
parentcebc75590be13058465818780eb9d69a2b11ee48 (diff)
Allow contact send method to be unset always.
If a body was set to Open311, and a contact set to Email, it was impossible to unset the contact's send method and set an Open311 code, because it would always demaned a valid email address.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin/Bodies.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm
index 2ff69b3b5..67177fcbd 100644
--- a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm
+++ b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm
@@ -241,7 +241,7 @@ sub update_contacts : Private {
my $email = $c->get_param('email');
$email =~ s/\s+//g;
- my $send_method = $c->get_param('send_method') || $contact->send_method || $contact->body->send_method || "";
+ my $send_method = $c->get_param('send_method') || $contact->body->send_method || "";
unless ( $send_method eq 'Open311' ) {
$errors{email} = _('Please enter a valid email') unless is_valid_email_list($email) || $email eq 'REFUSED';
}