PM-723 error 404 al importar licencia enterprise SOLVED

- no se carga un archivo dando error 404.
- el archivo ya no existe ahora redireciona al archivo correcto.
- Se elimino el mensaje al importar la licencia.
This commit is contained in:
Marco Antonio Nina
2014-10-23 13:39:04 -04:00
parent 541aa402e8
commit 018bfdaa73
2 changed files with 4 additions and 15 deletions

View File

@@ -125,14 +125,6 @@ try {
} }
file_put_contents(PATH_DATA_SITE . "plugin.singleton", $pluginRegistry->serializeInstance()); file_put_contents(PATH_DATA_SITE . "plugin.singleton", $pluginRegistry->serializeInstance());
///////
$message = "A license has been correctly installed. Please login again to apply the changes";
G::SendMessageText($message, "INFO");
$_SESSION["___PMEE_INSTALLED_LIC___"] = $message;
//G::header("location: ../enterprise/pluginsList"); //ok
//exit(0);
} }
} }
break; break;

View File

@@ -763,20 +763,17 @@ Ext.onReady(function() {
waitTitle: _('ID_PLEASE_WAIT'), waitTitle: _('ID_PLEASE_WAIT'),
waitMsg: _('ID_UPDATING_LICENSE_MSG'), waitMsg: _('ID_UPDATING_LICENSE_MSG'),
success: function (form, o) { success: function (form, o) {
Ext.MessageBox.alert(_('ID_INFORMATION'), _('ID_SUCCESSFULLY_UPLOADED'), function () { Ext.MessageBox.alert(_('ID_INFORMATION'), _('ID_SUCCESSFULLY_UPLOADED') + ' ' + _('ID_ENTERPRISE_INSTALLED'), function () {
parent.parent.window.location.href = newLocation(); parent.parent.window.location.href = newLocation();
}); });
}, },
failure: function (form, action) { failure: function (form, action) {
if (action.failureType == 'server') { if (action.failureType == 'server') {
parent.parent.window.location.href = newLocation(); parent.parent.window.location.href = newLocation();
} else if (action.failureType == 'client') { return;
var dataResponse = eval("(" + action.response.responseText.trim() + ")"); //json
Ext.MessageBox.alert(_('ID_WARNING'), (dataResponse.errors)? dataResponse.errors : _('ID_WARNING_ERROR_UPDATING'));
} else {
var dataResponse = eval("(" + action.response.responseText.trim() + ")"); //json
Ext.MessageBox.alert(_('ID_WARNING'), (dataResponse.errors)? dataResponse.errors : _('ID_WARNING_ERROR_UPDATING'));
} }
var dataResponse = eval("(" + action.response.responseText.trim() + ")"); //json
Ext.MessageBox.alert(_('ID_WARNING'), (dataResponse.errors)? dataResponse.errors : _('ID_WARNING_ERROR_UPDATING'));
} }
}); });
} }