aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/validation_rules.js
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2020-01-20 15:47:43 +0000
committerDave Arter <davea@mysociety.org>2020-01-20 19:30:51 +0000
commitc0fbe0a55bb2c24fb7e07b0972a3306c00552d1c (patch)
treedfd494836cf616d1fc70561a7c1f33bebe5fca19 /web/js/validation_rules.js
parentd87a4661bc49d1918cd7fcd617c7f2c1f9474263 (diff)
Skip admin contact email validation check if address hasn’t changed
Some contacts (e.g. TfL) don’t have a valid email address but aren’t Open311 categories - the email destination is managed via the borough_email_addresses feature. This prevents any changes to the contact being made via the admin due to the email validation error message. This commit updates the logic to only check that the email address is valid if it’s been changed from the existing value (which may be blank if a it’s a new contact). Fixes https://github.com/mysociety/fixmystreet-freshdesk/issues/108
Diffstat (limited to 'web/js/validation_rules.js')
0 files changed, 0 insertions, 0 deletions