Bugzilla – Attachment 146418 Details for
Bug 32904
Patrons table processing eternally and not loading
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32904: Check if responseJSON is defined for dataTable error
Bug-32904-Check-if-responseJSON-is-defined-for-dat.patch (text/plain), 1.42 KB, created by
Jonathan Druart
on 2023-02-09 08:47:04 UTC
(
hide
)
Description:
Bug 32904: Check if responseJSON is defined for dataTable error
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-02-09 08:47:04 UTC
Size:
1.42 KB
patch
obsolete
>From 306a3e09da59bc21138ea7264e0c406aa482967a Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Tue, 7 Feb 2023 22:00:18 +0000 >Subject: [PATCH] Bug 32904: Check if responseJSON is defined for dataTable > error > >This patch checks if responseJSON is defined before checking if >responseJSON.errors is defined. > >Sponsored-by: Education Services Australia SCIS > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > 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 2e922c64a63..2bcf1fdf2ba 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.map(m => m.message).join("\n") : '' >+ ( settings.jqXHR.responseJSON && settings.jqXHR.responseJSON.errors ) ? settings.jqXHR.responseJSON.errors.map(m => m.message).join("\n") : '' > )); > } else { > alert(__("Something went wrong when loading the table.")); >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32904
:
146362
| 146418