Test length of email value
issue11237
This commit is contained in:
1 parent
1c38d3dd3f
commit
43d239ebcb
1 file changed
+1
-1
@@ -226,7 +226,7 @@ class CreateDPDShipping(Wizard):
|
||||
if phone:
|
||||
shipping_party['phone'] = phone.value[:30]
|
||||
email = party.contact_mechanism_get('email')
|
||||
if email and len(email) <= 50:
|
||||
if email and len(email.value) <= 50:
|
||||
shipping_party['email'] = email.value
|
||||
|
||||
return shipping_party
|
||||
|
||||
Reference in new issue
Block a user