[hotfix] ignore if student email address field value is None (#11116)

This commit is contained in:
Makarand Bauskar 2017-10-09 12:42:18 +05:30 committed by Nabin Hait
parent 6f5853b97a
commit eaf0abedd4

View File

@ -50,6 +50,7 @@ class Fees(AccountsController):
select g.email_address select g.email_address
from `tabGuardian` g, `tabStudent Guardian` sg from `tabGuardian` g, `tabStudent Guardian` sg
where g.name = sg.guardian and sg.parent = %s and sg.parenttype = 'Student' where g.name = sg.guardian and sg.parent = %s and sg.parenttype = 'Student'
and ifnull(g.email_address, '')!=''
""", self.student) """, self.student)
student_email_id = frappe.db.get_value("Student", self.student, "student_email_id") student_email_id = frappe.db.get_value("Student", self.student, "student_email_id")