From f9e079a2ce440ed5b0e239f3b8c8484a7d28ca70 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 13 Sep 2012 13:02:00 +0800 Subject: [PATCH] Pman.Tab.AdminContactsGroupRight.bjs Pman.Tab.AdminContactsGroupRight.js --- Pman.Tab.AdminContactsGroupRight.bjs | 2 +- Pman.Tab.AdminContactsGroupRight.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Pman.Tab.AdminContactsGroupRight.bjs b/Pman.Tab.AdminContactsGroupRight.bjs index 360b2fd..f6b3312 100644 --- a/Pman.Tab.AdminContactsGroupRight.bjs +++ b/Pman.Tab.AdminContactsGroupRight.bjs @@ -254,7 +254,7 @@ "sortable": false, "width": 150, "xtype": "ColumnModel", - "|renderer": "function(v,x,r) {\n return String.format('{0}', v.split('.').shift(), v);\n}", + "|renderer": "function(v,x,r) {\n if(!v){\n return;\n }\n return String.format('{0}', v.split('.').shift(), v);\n}", "|xns": "Roo.grid" }, { diff --git a/Pman.Tab.AdminContactsGroupRight.js b/Pman.Tab.AdminContactsGroupRight.js index 50fb4fa..5449c4e 100644 --- a/Pman.Tab.AdminContactsGroupRight.js +++ b/Pman.Tab.AdminContactsGroupRight.js @@ -713,6 +713,9 @@ Pman.Tab.AdminContactsGroupRight = new Roo.XComponent({ sortable : false, width : 150, renderer : function(v,x,r) { + if(!v){ + return; + } return String.format('{0}', v.split('.').shift(), v); } }, -- 2.39.2