Ver código fonte

[minor] added frappe.utils in email alerts (#2903)

version-14
Makarand Bauskar 8 anos atrás
committed by Rushabh Mehta
pai
commit
ec1f8e445e
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      frappe/email/doctype/email_alert/email_alert.py

+ 1
- 1
frappe/email/doctype/email_alert/email_alert.py Ver arquivo

@@ -197,5 +197,5 @@ def evaluate_alert(doc, alert, event):
frappe.throw(_("Error while evaluating Email Alert {0}. Please fix your template.").format(alert))

def get_context(doc):
return {"doc": doc, "nowdate": nowdate}
return {"doc": doc, "nowdate": nowdate, "frappe.utils": frappe.utils}


Carregando…
Cancelar
Salvar