mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 20:18:27 +00:00
validate email id only if provided (#9020)
This commit is contained in:
committed by
Nabin Hait
parent
ca89b6f59c
commit
c2bf50042f
@@ -27,7 +27,8 @@ class JobApplicant(Document):
|
||||
|
||||
def validate(self):
|
||||
self.check_email_id_is_unique()
|
||||
validate_email_add(self.email_id, True)
|
||||
if self.email_id:
|
||||
validate_email_add(self.email_id, True)
|
||||
|
||||
if not self.applicant_name and self.email_id:
|
||||
guess = self.email_id.split('@')[0]
|
||||
|
||||
Reference in New Issue
Block a user