diff --git a/erpnext/support/doctype/communication/communication.js b/erpnext/support/doctype/communication/communication.js index 87e0aad819f..759dddd59bb 100644 --- a/erpnext/support/doctype/communication/communication.js +++ b/erpnext/support/doctype/communication/communication.js @@ -38,11 +38,13 @@ cur_frm.cscript.render_communication_list = function(doc, dt, dn) { this._super(data); data.creation = wn.datetime.str_to_user(data.communication_date); - data.content = cstr(data.subject) + " | " + cstr(data.content); + // replace double quote with blank string + data.content = cstr(data.subject).replace(/"/gi, '') + + " | " + cstr(data.content).replace(/"/gi, ''); if(data.content && data.content.length > 50) { data.content = '' + - data.description.substr(0,50) + '...'; + data.content.substr(0,50) + '...'; } }, diff --git a/erpnext/support/doctype/communication/listview.js b/erpnext/support/doctype/communication/listview.js index 8d3da060e23..7a1e80c2da1 100644 --- a/erpnext/support/doctype/communication/listview.js +++ b/erpnext/support/doctype/communication/listview.js @@ -15,7 +15,9 @@ wn.doclistviews['Communication'] = wn.views.ListView.extend({ this._super(data); data.creation = wn.datetime.only_date(data.creation); - data.content = cstr(data.subject) + " | " + cstr(data.content); + // replace double quote with blank string + data.content = cstr(data.subject).replace(/"/gi, '') + + " | " + cstr(data.content).replace(/"/gi, ''); if(data.content && data.content.length > 50) { data.content = '' +