From 7e95ca32da0f8401a448b58b47dde3f2f39b4f64 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 Signed-off-by: Lucas Gass (cherry picked from commit 41b531b315dd818e7278aadee50182e9ca283390) Signed-off-by: Paul Derscheid --- .../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 d0af80fbbb..f54610f210 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 @@