Fix, prevent multiple error reporting modals

See: fa303ee292
Seee: #14359
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-03-16 20:58:57 +01:00
parent e889aea9e1
commit 27f7b7a75f
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 5 additions and 1 deletions

View File

@ -15,6 +15,10 @@ var ErrorReport = {
* @return void
*/
error_handler: function (exception) {
// issue: 14359
if (JSON.stringify(ErrorReport._last_exception) === JSON.stringify(exception)) {
return;
}
if (exception.name === null || typeof(exception.name) === 'undefined') {
exception.name = ErrorReport._extractExceptionName(exception);
}

View File

@ -5049,7 +5049,7 @@ function configSet (key, value, only_local) {
success: function (data) {
// Updating value in local storage.
if (! data.success) {
if(data.error) {
if (data.error) {
PMA_ajaxShowMessage(data.error);
} else {
PMA_ajaxShowMessage(data.message);