From: Alan Knowles Date: Fri, 17 Sep 2010 10:55:42 +0000 (+0800) Subject: Pman.Dialog.CorePersonContact.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=16c0d18d6c44868a75c3b2b9d8ffd6adc6ff0463 Pman.Dialog.CorePersonContact.js --- diff --git a/Pman.Dialog.CorePersonContact.js b/Pman.Dialog.CorePersonContact.js index cebd347e..4a6994e4 100644 --- a/Pman.Dialog.CorePersonContact.js +++ b/Pman.Dialog.CorePersonContact.js @@ -147,8 +147,11 @@ Pman.Dialog.CorePersonContact = { add : function (combo) { var coid = _this.form.findField('company_id').getValue(); - i + if (!coid ) { + Ext.MessageBox.alert("Error", "Select An Company First"); + return false + } } }, allowBlank : 'false',