diff --git a/web/source/x_component_CRM/ClueOpen.js b/web/source/x_component_CRM/ClueOpen.js
index 256f8ad60a152dbc3dac5572eaa5dfca774e3020..25b00514fcb1eb2ad196c84ed108dc50fab073a2 100644
--- a/web/source/x_component_CRM/ClueOpen.js
+++ b/web/source/x_component_CRM/ClueOpen.js
@@ -177,12 +177,13 @@ MWF.xApplication.CRM.ClueOpen = new Class({
var itemTemplateObject = _self.lp;
var section_conent = '
';
for ( i in itemTemplateObject){
+ debugger
var conentValue = jsonObj[i];
if(i == "province" && conentValue.indexOf("#")>0){
conentValue = conentValue.replaceAll("#","-")
}
section_conent = section_conent+'
'+itemTemplateObject[i].text+'
' +
- '
'+conentValue+'
';
+ '
'+((typeof(conentValue)=="undefined")?"" : conentValue)+'
';
}
section_conent = section_conent + '';
diff --git a/web/source/x_component_CRM/ContactsOpen.js b/web/source/x_component_CRM/ContactsOpen.js
index c5ab20abd280c139e1281139f45871a0a4cf6e1d..63afc9a5ac201fc4d5529d697cf7ae7e6b851176 100644
--- a/web/source/x_component_CRM/ContactsOpen.js
+++ b/web/source/x_component_CRM/ContactsOpen.js
@@ -179,6 +179,7 @@ MWF.xApplication.CRM.ContactsOpen = new Class({
var itemTemplateObject = _self.lp;
var section_conent = '';
for ( i in itemTemplateObject){
+ debugger
var valueStr = "";
if(i=="customername"){
valueStr = ((typeof(jsonObj.customer)=="undefined")?"" : jsonObj.customer.customername);
diff --git a/web/source/x_component_CRM/CustomerOpen.js b/web/source/x_component_CRM/CustomerOpen.js
index 05f561caef7b3c41df4692241afb2ac1afb7fafc..aabdb7298226af387c40c70f57cf65a6db0044e6 100644
--- a/web/source/x_component_CRM/CustomerOpen.js
+++ b/web/source/x_component_CRM/CustomerOpen.js
@@ -215,8 +215,9 @@ MWF.xApplication.CRM.CustomerOpen = new Class({
var itemTemplateObject = _self.lp;
var section_conent = '
';
for ( i in itemTemplateObject){
+ debugger
var conentValue = jsonObj[i];
- if(i == "province" && conentValue.indexOf("#")>0){
+ if(i == "province" && conentValue && conentValue.indexOf("#")>0){
conentValue = conentValue.replaceAll("#","-")
}
section_conent = section_conent+'
'+itemTemplateObject[i].text+'
' +
diff --git a/web/source/x_component_CRM/PublicseasOpen.js b/web/source/x_component_CRM/PublicseasOpen.js
index bd02c910c1a8c8b812879414e499a2897367e5b3..b8b8694ee15e281a2c1bbd0eef8b017f3b98e6af 100644
--- a/web/source/x_component_CRM/PublicseasOpen.js
+++ b/web/source/x_component_CRM/PublicseasOpen.js
@@ -193,7 +193,7 @@ MWF.xApplication.CRM.PublicseasOpen = new Class({
var section_conent = '
';
for ( i in itemTemplateObject){
var conentValue = jsonObj[i];
- if(i == "province" && conentValue.indexOf("#")>0){
+ if(i == "province" && conentValue && conentValue.indexOf("#")>0){
conentValue = conentValue.replaceAll("#","-")
}
section_conent = section_conent+'
'+itemTemplateObject[i].text+'
' +