From 16c0d18d6c44868a75c3b2b9d8ffd6adc6ff0463 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 17 Sep 2010 18:55:42 +0800 Subject: [PATCH] Pman.Dialog.CorePersonContact.js --- Pman.Dialog.CorePersonContact.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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', -- 2.39.2