BUG 8730 arreglo de email configuration cuando este no existe
This commit is contained in:
@@ -653,13 +653,15 @@ class adminProxy extends HttpProxyController
|
|||||||
$oConfiguration = new Configurations();
|
$oConfiguration = new Configurations();
|
||||||
$oConfiguration->loadConfig($x, 'Emails','','','','');
|
$oConfiguration->loadConfig($x, 'Emails','','','','');
|
||||||
$fields = $oConfiguration->aConfig;
|
$fields = $oConfiguration->aConfig;
|
||||||
$this->success = (count($fields) > 0);
|
if (count($fields) > 0) {
|
||||||
$passwd = $fields['MESS_PASSWORD'];
|
$this->success = (count($fields) > 0);
|
||||||
$passwdDec = G::decrypt($passwd,'EMAILENCRYPT');
|
$passwd = $fields['MESS_PASSWORD'];
|
||||||
if (strpos( $passwdDec, 'hash:' ) !== false) {
|
$passwdDec = G::decrypt($passwd,'EMAILENCRYPT');
|
||||||
list($hash, $pass) = explode(":", $passwdDec);
|
if (strpos( $passwdDec, 'hash:' ) !== false) {
|
||||||
$fields['MESS_PASSWORD'] = $pass;
|
list($hash, $pass) = explode(":", $passwdDec);
|
||||||
}
|
$fields['MESS_PASSWORD'] = $pass;
|
||||||
|
}
|
||||||
|
}
|
||||||
$this->data = $fields;
|
$this->data = $fields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ Ext.onReady(function(){
|
|||||||
disabled : true,
|
disabled : true,
|
||||||
listeners: {
|
listeners: {
|
||||||
select: function(combo, value) {
|
select: function(combo, value) {
|
||||||
if (Ext.getCmp('EmailEngine').getValue()== 'MAIL') { alert
|
if (Ext.getCmp('EmailEngine').getValue()== 'MAIL') {
|
||||||
Ext.getCmp('Server').setVisible(false);
|
Ext.getCmp('Server').setVisible(false);
|
||||||
Ext.getCmp('Server').getEl().up('.x-form-item').setDisplayed(false); // hide label
|
Ext.getCmp('Server').getEl().up('.x-form-item').setDisplayed(false); // hide label
|
||||||
Ext.getCmp('Port').setVisible(false);
|
Ext.getCmp('Port').setVisible(false);
|
||||||
@@ -317,7 +317,8 @@ Ext.onReady(function(){
|
|||||||
params: { CFG_UID: 'Emails' },
|
params: { CFG_UID: 'Emails' },
|
||||||
success: function(r,o) {
|
success: function(r,o) {
|
||||||
var res = Ext.decode(r.responseText);
|
var res = Ext.decode(r.responseText);
|
||||||
if (! res.data) return;
|
if (! res.data)
|
||||||
|
return;
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
Ext.getCmp('EnableEmailNotifications').setValue(res.data.MESS_ENABLED);
|
Ext.getCmp('EnableEmailNotifications').setValue(res.data.MESS_ENABLED);
|
||||||
Ext.getCmp('EmailEngine').setValue(res.data.MESS_ENGINE);
|
Ext.getCmp('EmailEngine').setValue(res.data.MESS_ENGINE);
|
||||||
|
|||||||
Reference in New Issue
Block a user