From 9f6a56b90139cfd75f8cd96cb2b0a837b18129b5 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 10 Oct 2025 07:01:36 +0200 Subject: [PATCH] Bug 40982: Allow to force visibility when needed The _dt_visibility function is only called when the state is initialized. Here we want to force the visibility of some columns even if the state exists already. The idea of this patch is to add a new 'force_visibility' flag to the column when the visibility needs to be respected regardless what is in the state. That should only be used when column cannot be toggled. Signed-off-by: Slava Shishkin --- .../prog/en/modules/acqui/basket.tt | 27 +++++++++----- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 36 +++++++++++++++++++ 2 files changed, 54 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt index d0af80fbbbd..f54610f2106 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt @@ -1267,24 +1267,33 @@