Bugzilla – Attachment 195314 Details for
Bug 41604
Impossible to hide Checkin column in issues-table in circ/circulation.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41604: take visibility_condition when save state is disabled
35c8292.patch (text/plain), 1.36 KB, created by
Jonathan Druart
on 2026-03-13 10:26:11 UTC
(
hide
)
Description:
Bug 41604: take visibility_condition when save state is disabled
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2026-03-13 10:26:11 UTC
Size:
1.36 KB
patch
obsolete
>From 35c8292fc6557c462aa7b49643947a37fb5aa07a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 13 Mar 2026 11:25:21 +0100 >Subject: [PATCH] Bug 41604: take visibility_condition when save state is > disabled > >--- > koha-tmpl/intranet-tmpl/prog/js/datatables.js | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >index 596c119a4f1..e26b21ee6db 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js >@@ -1022,6 +1022,18 @@ function _dt_visibility(table_settings, table_dt) { > let i = 0; > let use_names = $(table_dt.table().node()).data("bKohaColumnsUseNames"); > if (use_names) { >+ // Deal with visibility_condition (needed when state is not saved) >+ table_settings.columns = table_settings.columns.map(c => { >+ if (c.visibility_condition === false) { >+ return { >+ ...c, >+ is_hidden: true, >+ cannot_be_toggled: true, >+ }; >+ } >+ return c; >+ }); >+ > let hidden_columns = table_settings.columns.filter( > c => c.is_hidden > ); >-- >2.43.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 41604
:
191480
|
191482
|
192316
|
194641
|
194998
|
195313
| 195314