@@ -14,7 +14,7 @@ import os, sys, importlib, inspect, json | |||||
from .exceptions import * | from .exceptions import * | ||||
from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template | from .utils.jinja import get_jenv, get_template, render_template, get_email_from_template | ||||
__version__ = '10.0.12' | |||||
__version__ = '10.0.13' | |||||
__title__ = "Frappe Framework" | __title__ = "Frappe Framework" | ||||
local = Local() | local = Local() | ||||
@@ -138,7 +138,7 @@ def get_communication_data(doctype, name, start=0, limit=20, after=None, fields= | |||||
'''Returns list of communications for a given document''' | '''Returns list of communications for a given document''' | ||||
if not fields: | if not fields: | ||||
fields = '''name, communication_type, | fields = '''name, communication_type, | ||||
communication_medium, comment_type, | |||||
communication_medium, comment_type, communication_date, | |||||
content, sender, sender_full_name, creation, subject, delivery_status, _liked_by, | content, sender, sender_full_name, creation, subject, delivery_status, _liked_by, | ||||
timeline_doctype, timeline_name, | timeline_doctype, timeline_name, | ||||
reference_doctype, reference_name, | reference_doctype, reference_name, | ||||
@@ -585,12 +585,13 @@ frappe.views.CommunicationComposer = Class.extend({ | |||||
.replace(/<meta[\s\S]*meta>/g, '') // remove <meta> tags | .replace(/<meta[\s\S]*meta>/g, '') // remove <meta> tags | ||||
.replace(/<style[\s\S]*<\/style>/g, ''); // // remove <style> tags | .replace(/<style[\s\S]*<\/style>/g, ''); // // remove <style> tags | ||||
var communication_date = last_email.communication_date || last_email.creation; | |||||
content = '<div><br></div>' | content = '<div><br></div>' | ||||
+ reply | + reply | ||||
+ "<br><!-- original-reply --><br>" | + "<br><!-- original-reply --><br>" | ||||
+ '<blockquote>' + | + '<blockquote>' + | ||||
'<p>' + __("On {0}, {1} wrote:", | '<p>' + __("On {0}, {1} wrote:", | ||||
[frappe.datetime.global_date_format(last_email.communication_date) , last_email.sender]) + '</p>' + | |||||
[frappe.datetime.global_date_format(communication_date) , last_email.sender]) + '</p>' + | |||||
last_email_content + | last_email_content + | ||||
'<blockquote>'; | '<blockquote>'; | ||||
} else { | } else { | ||||