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