From 5c3916d6d53255a2a9b54d3fdc731cd67d8de54b Mon Sep 17 00:00:00 2001 From: Roly Rudy Gutierrez Pinto Date: Wed, 19 Feb 2020 16:08:03 -0400 Subject: [PATCH] PMCORE-1186 Invalid required validation inside Email Server creation --- workflow/engine/templates/emailServer/emailServer.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/workflow/engine/templates/emailServer/emailServer.js b/workflow/engine/templates/emailServer/emailServer.js index 6c1296ed8..31bd40b54 100644 --- a/workflow/engine/templates/emailServer/emailServer.js +++ b/workflow/engine/templates/emailServer/emailServer.js @@ -310,6 +310,8 @@ emailServer.application = { Ext.getCmp("txtIncomingServer").allowBlank = true; Ext.getCmp("txtIncomingPort").allowBlank = true; Ext.getCmp("txtAccountFrom").allowBlank = false; + Ext.getCmp("textClientId").allowBlank = true; + Ext.getCmp("textClientSecret").allowBlank = true; } else if (cboEmailEngine === "IMAP") { /*----------------------------------********---------------------------------*/ Ext.getCmp("txtServer").setVisible(true); @@ -338,6 +340,8 @@ emailServer.application = { Ext.getCmp("txtIncomingServer").allowBlank = false; Ext.getCmp("txtIncomingPort").allowBlank = false; Ext.getCmp("txtAccountFrom").allowBlank = false; + Ext.getCmp("textClientId").allowBlank = true; + Ext.getCmp("textClientSecret").allowBlank = true; /*----------------------------------********---------------------------------*/ } else if (cboEmailEngine === "GMAILAPI") { Ext.getCmp("txtServer").setVisible(false); @@ -362,6 +366,8 @@ emailServer.application = { Ext.getCmp("txtIncomingPort").allowBlank = true; Ext.getCmp("txtAccountFrom").allowBlank = false; Ext.getCmp("txtPassword").allowBlank = true; + Ext.getCmp("textClientId").allowBlank = false; + Ext.getCmp("textClientSecret").allowBlank = false; } else { //MAIL Ext.getCmp("txtServer").setVisible(false); @@ -383,6 +389,8 @@ emailServer.application = { Ext.getCmp("txtIncomingPort").allowBlank = true; Ext.getCmp("txtAccountFrom").allowBlank = true; Ext.getCmp("txtPassword").allowBlank = true; + Ext.getCmp("textClientId").allowBlank = true; + Ext.getCmp("textClientSecret").allowBlank = true; } }