mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 11:19:09 +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):
|
def validate(self):
|
||||||
self.check_email_id_is_unique()
|
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:
|
if not self.applicant_name and self.email_id:
|
||||||
guess = self.email_id.split('@')[0]
|
guess = self.email_id.split('@')[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user