From: Alan Knowles Date: Fri, 17 Sep 2010 10:57:05 +0000 (+0800) Subject: Pman.Dialog.CorePersonContact.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=037458f84e77c8438f1864c23c527d384de17d34 Pman.Dialog.CorePersonContact.js --- diff --git a/Pman.Dialog.CorePersonContact.js b/Pman.Dialog.CorePersonContact.js index 280cc4fa..5fc9f2db 100644 --- a/Pman.Dialog.CorePersonContact.js +++ b/Pman.Dialog.CorePersonContact.js @@ -164,11 +164,11 @@ Pman.Dialog.CorePersonContact = { }, beforequery : function (combo, query, forceAll, cancel, e) { - var coid = _this.form.findField('company_id').getValue(); + var coid = _this.form.findField('company_id').getValue(); if (coid < 1 ) { - Ext.MessageBox.alert("Error", "Select An Company First"); - return false; - } + Ext.MessageBox.alert("Error", "Select An Company First"); + return false; + } } }, allowBlank : 'false',