Bugzilla – Attachment 174734 Details for
Bug 38436
Adjust code for column visibility (after DataTables upgrade)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38436: (follow-up) Adjust columns_settings.inc for KohaTable
Bug-38436-follow-up-Adjust-columnssettingsinc-for-.patch (text/plain), 1.33 KB, created by
Owen Leonard
on 2024-11-18 15:41:20 UTC
(
hide
)
Description:
Bug 38436: (follow-up) Adjust columns_settings.inc for KohaTable
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-11-18 15:41:20 UTC
Size:
1.33 KB
patch
obsolete
>From baeb4034285881ed84c234b7d6aec10b39e47431 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 18 Nov 2024 14:47:13 +0100 >Subject: [PATCH] Bug 38436: (follow-up) Adjust columns_settings.inc for > KohaTable > >Previous commit didn't adjust columns_settings.inc > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >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 61c61d8d98..19fd2c7c71 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc >@@ -28,7 +28,7 @@ function KohaTable(id_selector, dt_parameters, table_settings, add_filters, defa > } > > function set_default(table_settings, table_dt){ >- let columns = new Array(table_settings.columns.length).fill({visible: true}); >+ let columns = new Array(table_dt.columns()[0].length).fill({visible: true}); > let hidden_ids = _dt_visibility(table_settings, table_dt); > hidden_ids.forEach((id, i) => { columns[id] = { visible: false } } ); > // State is not loaded if time is not passed >-- >2.39.5
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 38436
:
174587
|
174588
|
174589
|
174590
|
174591
|
174592
|
174593
|
174594
|
174595
|
174634
|
174641
|
174642
|
174688
|
174689
|
174690
|
174691
|
174692
|
174693
|
174694
|
174695
|
174696
|
174697
|
174698
|
174699
|
174700
|
174701
|
174702
|
174721
|
174722
|
174723
|
174724
|
174725
|
174726
|
174727
|
174728
|
174729
|
174730
|
174731
|
174732
|
174733
|
174734
|
174735
|
174736
|
174740
|
174741
|
174742
|
174743
|
174744
|
174745
|
174746
|
174747
|
174748
|
174749
|
174750
|
174751
|
174752
|
174753
|
174754
|
174755
|
174756
|
174766
|
174767
|
174768
|
174769
|
174770
|
174771
|
174772
|
174773
|
174774
|
174775
|
174776
|
174777
|
174778
|
174779
|
174780
|
174781
|
174782
|
174821
|
174967