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:
@@ -125,14 +125,6 @@ try {
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
@@ -763,20 +763,17 @@ Ext.onReady(function() {
|
||||
waitTitle: _('ID_PLEASE_WAIT'),
|
||||
waitMsg: _('ID_UPDATING_LICENSE_MSG'),
|
||||
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();
|
||||
});
|
||||
},
|
||||
failure: function (form, action) {
|
||||
if (action.failureType == 'server') {
|
||||
parent.parent.window.location.href = newLocation();
|
||||
} else if (action.failureType == 'client') {
|
||||
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'));
|
||||
return;
|
||||
}
|
||||
var dataResponse = eval("(" + action.response.responseText.trim() + ")"); //json
|
||||
Ext.MessageBox.alert(_('ID_WARNING'), (dataResponse.errors)? dataResponse.errors : _('ID_WARNING_ERROR_UPDATING'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user