From 7e04e0d7a0046da14c8d4881eeea8052523ceee6 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 17 Sep 2010 18:57:00 +0800 Subject: [PATCH] Pman.Dialog.CorePersonContact.js --- Pman.Dialog.CorePersonContact.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Pman.Dialog.CorePersonContact.js b/Pman.Dialog.CorePersonContact.js index 7b6588e7..280cc4fa 100644 --- a/Pman.Dialog.CorePersonContact.js +++ b/Pman.Dialog.CorePersonContact.js @@ -164,7 +164,11 @@ Pman.Dialog.CorePersonContact = { }, beforequery : function (combo, query, forceAll, cancel, e) { - + var coid = _this.form.findField('company_id').getValue(); + if (coid < 1 ) { + Ext.MessageBox.alert("Error", "Select An Company First"); + return false; + } } }, allowBlank : 'false', -- 2.39.2