From 5f3a940e2c9b44d45f65ba77f6e936f8cd0cc883 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 Signed-off-by: Martin Renvoize --- .../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 @@