From f62e6ebbaa79ad049eeab6c981dcf1ac87cf6558 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 20 Oct 2022 09:39:59 +0200 Subject: [PATCH] Bug 32030: Handle error 401 Unauthorized from EBSCO api - Display all messages In case there are more than one message. Signed-off-by: Jonathan Field Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 080ac3a782..94a532b19e 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -496,7 +496,7 @@ jQuery.fn.dataTable.ext.errMode = function(settings, note, message) { alert(__("Something went wrong when loading the table.\n%s: %s. \n%s").format( settings.jqXHR.status, settings.jqXHR.statusText, - settings.jqXHR.responseJSON.errors ? settings.jqXHR.responseJSON.errors[0].message : '' + settings.jqXHR.responseJSON.errors ? settings.jqXHR.responseJSON.errors.map(m => m.message).join("\n") : '' )); } else { alert(__("Something went wrong when loading the table.")); -- 2.39.5