From: Alan Knowles Date: Fri, 17 Sep 2010 10:57:00 +0000 (+0800) Subject: Pman.Dialog.CorePersonContact.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=7e04e0d7a0046da14c8d4881eeea8052523ceee6 Pman.Dialog.CorePersonContact.js --- 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',