[hotfix] ignore if student email address field value is None (#11116)
This commit is contained in:
parent
6f5853b97a
commit
eaf0abedd4
@ -50,6 +50,7 @@ class Fees(AccountsController):
|
||||
select g.email_address
|
||||
from `tabGuardian` g, `tabStudent Guardian` sg
|
||||
where g.name = sg.guardian and sg.parent = %s and sg.parenttype = 'Student'
|
||||
and ifnull(g.email_address, '')!=''
|
||||
""", self.student)
|
||||
|
||||
student_email_id = frappe.db.get_value("Student", self.student, "student_email_id")
|
||||
|
Loading…
Reference in New Issue
Block a user