From 73c6542e6c592ab28f3c6b0b9a9b08269445628a Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 22 Aug 2012 14:57:35 +0530 Subject: [PATCH] minor fix in communication.js --- erpnext/support/doctype/communication/communication.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/support/doctype/communication/communication.js b/erpnext/support/doctype/communication/communication.js index d6af592048..59e2ee9c55 100644 --- a/erpnext/support/doctype/communication/communication.js +++ b/erpnext/support/doctype/communication/communication.js @@ -64,7 +64,7 @@ cur_frm.cscript.render_communication_list = function(doc, dt, dn) { ListView, function(doctype) { var new_doc = LocalDB.create(doctype); new_doc = locals[doctype][new_doc]; - new_doc[doc.doctype.toLowerCase()] = doc.name; + new_doc[doc.doctype.toLowerCase().replace(" ", "_")] = doc.name; loaddoc(new_doc.doctype, new_doc.name); }); } @@ -79,7 +79,7 @@ cur_frm.cscript.render_list = function(doc, doctype, wrapper, ListView, make_new var RecordListView = wn.views.RecordListView.extend({ default_docstatus: ['0', '1', '2'], default_filters: [ - [doctype, doc.doctype.toLowerCase(), '=', doc.name], + [doctype, doc.doctype.toLowerCase().replace(" ", "_"), '=', doc.name], ], });