[minor] commit after sending email alert (#3361)

This commit is contained in:
Rushabh Mehta 2017-05-23 17:10:45 +05:30 committed by Nabin Hait
parent 78c9278220
commit 5cb26ac32c

View file

@ -200,6 +200,7 @@ def trigger_email_alerts(doc, method=None):
alert = frappe.get_doc("Email Alert", alert)
for doc in alert.get_documents_for_today():
evaluate_alert(doc, alert, alert.event)
frappe.db.commit()
def evaluate_alert(doc, alert, event):
from jinja2 import TemplateError