fix: mail was also sending after setting of hte document follow uncheck
This commit is contained in:
parent
0bbb3b3ad6
commit
250ccaf9ba
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ def send_document_follow_mails(frequency):
|
|||
"reference_url": get_url_to_form(d.ref_doctype, d.ref_docname)
|
||||
})
|
||||
|
||||
if message:
|
||||
if message and frappe.db.get_value("User", user, "document_follow_notify", ignore=True):
|
||||
send_email_alert(user, valid_document_follows, message)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue