Pman.Dialog.CorePersonContact.js
[Pman.Core] / Pman.Dialog.CorePersonContact.js
index cebd347..4a6994e 100644 (file)
@@ -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',