Bugzilla – Attachment 176553 Details for
Bug 38255
Do not use dataTable constructor directly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38255: Early return if the node does not exist
Bug-38255-Early-return-if-the-node-does-not-exist.patch (text/plain), 1.09 KB, created by
Jonathan Druart
on 2025-01-15 11:30:23 UTC
(
hide
)
Description:
Bug 38255: Early return if the node does not exist
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-01-15 11:30:23 UTC
Size:
1.09 KB
patch
obsolete
>From 7033b6981dda14051769f8518c1e2b5a92c46853 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 2 Dec 2024 10:56:34 +0100 >Subject: [PATCH] Bug 38255: Early return if the node does not exist > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 5a4f069f4a1..b12f66f803d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -1032,6 +1032,9 @@ function _dt_save_restore_state(table_settings, external_filter_nodes={}){ > $.fn.kohaTable = function(options, table_settings, add_filters, default_filters, filters_options, external_filter_nodes) { > var settings = null; > >+ // Early return if the node does not exist >+ if (!this.length) return; >+ > if(options) { > // Don't redefine the default initComplete > if ( options.initComplete ) { >-- >2.34.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 38255
:
175181
|
175182
|
175183
|
175184
|
175185
|
175352
|
175598
|
175599
|
175872
|
175873
|
176062
|
176063
|
176064
|
176065
|
176066
|
176067
|
176068
|
176069
|
176070
|
176071
|
176146
|
176348
|
176349
|
176350
|
176351
|
176352
|
176353
|
176354
|
176355
|
176356
|
176357
|
176358
|
176550
|
176551
|
176552
|
176553
|
176554
|
176555
|
176556
|
176557
|
176558
|
176559
|
176560
|
177076
|
177077
|
177078
|
177079
|
177080
|
177081
|
177082
|
177083
|
177084
|
177085
|
177086
|
177214
|
177215
|
177216
|
177217
|
177218
|
177219
|
177220
|
177221
|
177222
|
177223
|
177224
|
177262