Pman.Dialog.PersonEditor.js
[Pman.Core] / Pman.Dialog.PersonEditor.js
index 7461c0d..cd5802e 100644 (file)
@@ -551,7 +551,7 @@ Pman.Dialog.PersonEditor.prototype = {
             return;
             
         }
-        if (!this.form.findField('company_id').getValue()) {
+        if (this.form.findField('company_id') && !this.form.findField('company_id').getValue()) {
             Ext.MessageBox.alert("Error", "Select a Company");
             return;
         }
@@ -641,8 +641,7 @@ Pman.Dialog.PersonEditor.prototype = {
     saveBulk: function() {
         // similar action to SendIntro
         // we build a fake list of data..
-        if (this.form.findField('company_id') && 
-                !this.form.findField('company_id').getValue()) {
+        if (!this.form.findField('company_id').getValue()) {
             Roo.MessageBox.alert("Error", "Select the Company Name");
             return;
         }