Bugzilla – Attachment 119465 Details for
Bug 28055
Convert DataTables option names to current version
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28055: (follow-up) Revert changes to aoColumnDefs option name
Bug-28055-follow-up-Revert-changes-to-aoColumnDefs.patch (text/plain), 1.65 KB, created by
Owen Leonard
on 2021-04-12 18:07:28 UTC
(
hide
)
Description:
Bug 28055: (follow-up) Revert changes to aoColumnDefs option name
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-04-12 18:07:28 UTC
Size:
1.65 KB
patch
obsolete
>From e9a50463be922ee44d28161b11547873c69f6f7c Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 12 Apr 2021 17:29:09 +0000 >Subject: [PATCH] Bug 28055: (follow-up) Revert changes to aoColumnDefs option > name > >This patch undoes changes to two lines in columns_settings.inc which >were triggering unwanted side-effects. There are several templates and >JavaScript files which use "aoColumnDefs" to pass options to columns >settings, and if we change this file without changing those at the same >time things will break. > >When these lines are updated it must be done so at the same time as we >modify the templates which pass that same option. >--- > koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >index 7f3c214ddc..0fd092013e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >@@ -135,8 +135,8 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { > { "targets": [ "anti-the" ], "type": "anti-the" }, > { "targets": [ "NoSort" ], "orderable": false, "searchable": false }, > ]; >- if ( new_parameters["columnDefs"] === undefined ) { >- new_parameters["columnDefs"] = default_column_defs; >+ if ( new_parameters["aoColumnDefs"] === undefined ) { >+ new_parameters["aoColumnDefs"] = default_column_defs; > } else { > $.extend(true, new_parameters, default_column_defs); > } >-- >2.11.0
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 28055
:
119004
|
119086
|
119161
| 119465