[minor] commit after sending email alert (#3361)
This commit is contained in:
parent
78c9278220
commit
5cb26ac32c
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue