diff --git a/support/doctype/support_ticket/support_ticket.js b/support/doctype/support_ticket/support_ticket.js
index b70ff4f998d..689ddbf0415 100644
--- a/support/doctype/support_ticket/support_ticket.js
+++ b/support/doctype/support_ticket/support_ticket.js
@@ -149,13 +149,15 @@ erpnext.CommunicationView = Class.extend({
var me = this;
this.body = $(repl('
\
%(email_address)s on %(when)s
\
-
%(content)s
\
+
\
', this.doc))
.appendTo(this.parent)
.css({"cursor":"pointer"})
.click(function() {
$(this).find(".comm-content").toggle();
});
+
+ this.body.find(".comm-content").html(this.doc.content);
},
toggle: function() {
this.body.find(".comm-content").toggle();
diff --git a/support/doctype/support_ticket/support_ticket.py b/support/doctype/support_ticket/support_ticket.py
index 8e5d7f2d0c1..a9ab729b741 100644
--- a/support/doctype/support_ticket/support_ticket.py
+++ b/support/doctype/support_ticket/support_ticket.py
@@ -34,7 +34,7 @@ class DocType(TransactionBase):
def add_communication_list(self):
# remove communications if present
- self.doclist = self.doclist.get({"doctype": ["!=", "Communcation"]})
+ self.doclist = webnotes.doclist(self.doclist).get({"doctype": ["!=", "Communcation"]})
comm_list = webnotes.conn.sql("""select * from tabCommunication
where support_ticket=%s order by modified desc limit 20""", self.doc.name, as_dict=1)