fix typo 'Send Attachements' in Newsletter
This commit is contained in:
parent
3db2754b6f
commit
c16c7fb121
3 changed files with 9 additions and 9 deletions
0
frappe/email/doctype/newsletter/newsletter..json
Normal file
0
frappe/email/doctype/newsletter/newsletter..json
Normal file
|
|
@ -17,7 +17,7 @@
|
|||
"subject",
|
||||
"message",
|
||||
"send_unsubscribe_link",
|
||||
"send_attachements",
|
||||
"send_attachments",
|
||||
"published",
|
||||
"route",
|
||||
"test_the_newsletter",
|
||||
|
|
@ -73,12 +73,6 @@
|
|||
"fieldtype": "Check",
|
||||
"label": "Send Unsubscribe Link"
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"fieldname": "send_attachements",
|
||||
"fieldtype": "Check",
|
||||
"label": "Send Attachements"
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"fieldname": "published",
|
||||
|
|
@ -127,6 +121,12 @@
|
|||
{
|
||||
"fieldname": "column_break_2",
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"default": "0",
|
||||
"fieldname": "send_attachments",
|
||||
"fieldtype": "Check",
|
||||
"label": "Send Attachments"
|
||||
}
|
||||
],
|
||||
"has_web_view": 1,
|
||||
|
|
@ -135,7 +135,7 @@
|
|||
"is_published_field": "published",
|
||||
"links": [],
|
||||
"max_attachments": 3,
|
||||
"modified": "2020-03-02 06:26:51.622521",
|
||||
"modified": "2020-05-12 18:09:40.137138",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Email",
|
||||
"name": "Newsletter",
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class Newsletter(WebsiteGenerator):
|
|||
frappe.db.auto_commit_on_many_writes = True
|
||||
|
||||
attachments = []
|
||||
if self.send_attachements:
|
||||
if self.send_attachments:
|
||||
files = frappe.get_all("File", fields=["name"], filters={"attached_to_doctype": "Newsletter",
|
||||
"attached_to_name": self.name}, order_by="creation desc")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue