From 8ddc8ada0202fad87b7928a0363a3ccc21299f69 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 29 Jun 2012 15:43:36 +0800 Subject: [PATCH] Pman.Dialog.PersonEditor.js --- Pman.Dialog.PersonEditor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Pman.Dialog.PersonEditor.js b/Pman.Dialog.PersonEditor.js index 7461c0df..cd5802ef 100644 --- a/Pman.Dialog.PersonEditor.js +++ b/Pman.Dialog.PersonEditor.js @@ -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; } -- 2.39.2