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."));