Merged in bugfix/PMCORE-1186 (pull request #7270)
PMCORE-1186 Invalid required validation inside Email Server creation Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -310,6 +310,8 @@ emailServer.application = {
|
|||||||
Ext.getCmp("txtIncomingServer").allowBlank = true;
|
Ext.getCmp("txtIncomingServer").allowBlank = true;
|
||||||
Ext.getCmp("txtIncomingPort").allowBlank = true;
|
Ext.getCmp("txtIncomingPort").allowBlank = true;
|
||||||
Ext.getCmp("txtAccountFrom").allowBlank = false;
|
Ext.getCmp("txtAccountFrom").allowBlank = false;
|
||||||
|
Ext.getCmp("textClientId").allowBlank = true;
|
||||||
|
Ext.getCmp("textClientSecret").allowBlank = true;
|
||||||
} else if (cboEmailEngine === "IMAP") {
|
} else if (cboEmailEngine === "IMAP") {
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
Ext.getCmp("txtServer").setVisible(true);
|
Ext.getCmp("txtServer").setVisible(true);
|
||||||
@@ -338,6 +340,8 @@ emailServer.application = {
|
|||||||
Ext.getCmp("txtIncomingServer").allowBlank = false;
|
Ext.getCmp("txtIncomingServer").allowBlank = false;
|
||||||
Ext.getCmp("txtIncomingPort").allowBlank = false;
|
Ext.getCmp("txtIncomingPort").allowBlank = false;
|
||||||
Ext.getCmp("txtAccountFrom").allowBlank = false;
|
Ext.getCmp("txtAccountFrom").allowBlank = false;
|
||||||
|
Ext.getCmp("textClientId").allowBlank = true;
|
||||||
|
Ext.getCmp("textClientSecret").allowBlank = true;
|
||||||
/*----------------------------------********---------------------------------*/
|
/*----------------------------------********---------------------------------*/
|
||||||
} else if (cboEmailEngine === "GMAILAPI") {
|
} else if (cboEmailEngine === "GMAILAPI") {
|
||||||
Ext.getCmp("txtServer").setVisible(false);
|
Ext.getCmp("txtServer").setVisible(false);
|
||||||
@@ -362,6 +366,8 @@ emailServer.application = {
|
|||||||
Ext.getCmp("txtIncomingPort").allowBlank = true;
|
Ext.getCmp("txtIncomingPort").allowBlank = true;
|
||||||
Ext.getCmp("txtAccountFrom").allowBlank = false;
|
Ext.getCmp("txtAccountFrom").allowBlank = false;
|
||||||
Ext.getCmp("txtPassword").allowBlank = true;
|
Ext.getCmp("txtPassword").allowBlank = true;
|
||||||
|
Ext.getCmp("textClientId").allowBlank = false;
|
||||||
|
Ext.getCmp("textClientSecret").allowBlank = false;
|
||||||
} else {
|
} else {
|
||||||
//MAIL
|
//MAIL
|
||||||
Ext.getCmp("txtServer").setVisible(false);
|
Ext.getCmp("txtServer").setVisible(false);
|
||||||
@@ -383,6 +389,8 @@ emailServer.application = {
|
|||||||
Ext.getCmp("txtIncomingPort").allowBlank = true;
|
Ext.getCmp("txtIncomingPort").allowBlank = true;
|
||||||
Ext.getCmp("txtAccountFrom").allowBlank = true;
|
Ext.getCmp("txtAccountFrom").allowBlank = true;
|
||||||
Ext.getCmp("txtPassword").allowBlank = true;
|
Ext.getCmp("txtPassword").allowBlank = true;
|
||||||
|
Ext.getCmp("textClientId").allowBlank = true;
|
||||||
|
Ext.getCmp("textClientSecret").allowBlank = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user