Pman.Dialog.PersonEditor.js
[Pman.Core] / Pman.Dialog.PersonEditor.js
index 1ab8e46..6f8ce47 100644 (file)
@@ -140,6 +140,8 @@ Pman.Dialog.PersonEditor.prototype = {
                             }
 
                         }
+                        
+                        _this.form.findField('countries').setValue();// set empty array by default...
                         return;
                     } 
                     
@@ -455,12 +457,12 @@ Pman.Dialog.PersonEditor.prototype = {
                 xtype : 'TextField',
                 width : 300
             },
-            country : {
+            countries : {
                 xtype: 'ComboBoxArray',
                 xns: Roo.form,
                 fieldLabel : 'Country',
-                hiddenName : 'country_id',
-                name : 'country',
+                hiddenName : 'countries',
+                name : 'countries_name',
                 width : 300,
                 combo : {
                     xtype: 'ComboBox',
@@ -470,7 +472,6 @@ Pman.Dialog.PersonEditor.prototype = {
                     displayField : 'title',
                     editable : false,
                     emptyText : "Select Country",
-                    fieldLabel : 'Journalist',
                     forceSelection : true,
                     idField : 'id',
                     triggerAction : 'all',