mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 16:56:57 +00:00
[minor] is_ajax check in newsletter
This commit is contained in:
@@ -30,7 +30,7 @@ class Newsletter(Document):
|
||||
|
||||
self.recipients = self.get_recipients()
|
||||
|
||||
if frappe.local.is_ajax:
|
||||
if getattr(frappe.local, "is_ajax", False):
|
||||
# to avoid request timed out!
|
||||
self.validate_send()
|
||||
erpnext.tasks.send_newsletter.delay(frappe.local.site, self.name)
|
||||
|
||||
Reference in New Issue
Block a user