mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 02:26:33 +00:00
Fix: Notify via email on new post on my company page
This commit is contained in:
@@ -55,9 +55,9 @@ class DocType:
|
||||
"""
|
||||
Prepares message body
|
||||
"""
|
||||
if args.get('type') and args.get('doctype'):
|
||||
if args.get('type'):
|
||||
msg_dict = {}
|
||||
msg_dict['message'] = self.get_message(args.get('type'))
|
||||
msg_dict['message'] = args.get('message') or self.get_message(args.get('type'))
|
||||
msg_dict['company'] = Document('Control Panel', 'Control Panel').company_name
|
||||
msg_dict['salutation'] = "Hi" + (args.get('contact_name') and (" " + args.get('contact_name')) or "")
|
||||
msg_dict['send_from'] = webnotes.conn.sql("""\
|
||||
|
||||
Reference in New Issue
Block a user