Pman.Dialog.PersonEditor.js
authorChris <chris@roojs.com>
Wed, 26 Mar 2014 11:28:18 +0000 (19:28 +0800)
committerChris <chris@roojs.com>
Wed, 26 Mar 2014 11:28:18 +0000 (19:28 +0800)
Pman.Dialog.PersonEditor.js

index ca8a5dd..9f714b2 100644 (file)
@@ -90,7 +90,7 @@ Pman.Dialog.PersonEditor.prototype = {
                         var data = _this.data;
                         // we dont have  a form where company name is sent in - and is editable..
                         //this.form.findField('office_id')
-                        if(!data.countries){
+                        if(!data.countries && _this.form.findField('countries')){
                             _this.form.findField('countries').setValue();// set empty array by default...
                         }