Bugzilla – Attachment 146362 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.34 KB, created by
Aleisha Amohia
on 2023-02-07 22:03:46 UTC
(
hide
)
Description:
Bug 32904: Check if responseJSON is defined for dataTable error
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2023-02-07 22:03:46 UTC
Size:
1.34 KB
patch
obsolete
>From c0eac8410711932be47d05998493f78d2542888b 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 >--- > 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 0fbb9b625c..505e0c0e01 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.20.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