mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-24 09:58:43 -04:00
Merge pull request #4180 from alphagov/dedup-something-else-181415991
Link directly to email branding "something else"
This commit is contained in:
@@ -2255,10 +2255,7 @@ class BrandingOptions(StripWhitespaceForm):
|
||||
return self.options.choices == (self.FALLBACK_OPTION,)
|
||||
|
||||
def validate_something_else(self, field):
|
||||
if self.branding_type == 'email':
|
||||
if self.something_else_is_only_option and not field.data:
|
||||
raise ValidationError('Cannot be empty')
|
||||
elif self.branding_type == 'letter':
|
||||
if self.branding_type == 'letter':
|
||||
if (
|
||||
self.something_else_is_only_option
|
||||
or self.options.data == self.FALLBACK_OPTION_VALUE
|
||||
|
||||
Reference in New Issue
Block a user