瀏覽代碼

[fix] email_alert.py

version-14
Rushabh Mehta 9 年之前
父節點
當前提交
ca07fc8376
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/email/doctype/email_alert/email_alert.py

+ 1
- 1
frappe/email/doctype/email_alert/email_alert.py 查看文件

@@ -51,7 +51,7 @@ def trigger_email_alerts(doc, method=None):
diff_days = -diff_days

for name in frappe.db.sql_list("""select name from `tab{0}` where
DATE({1}) = ADDDATE(DATE(%s), INTERVAL %s DAY)""".format(alert.document_type, alert.date_changed),
DATE(`{1}`) = ADDDATE(DATE(%s), INTERVAL %s DAY)""".format(alert.document_type, alert.date_changed),
(nowdate(), diff_days or 0)):

evaluate_alert(frappe.get_doc(alert.document_type, name),


Loading…
取消
儲存