From 539d8050389c6065a5883f57f7062f6bd34b1b09 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Wed, 19 Nov 2025 10:52:46 +0000 Subject: [PATCH] Bug 41214: Apply the same logic to table columns Signed-off-by: Pedro Amorim Signed-off-by: Matt Blenkinsop --- .../intranet-tmpl/prog/js/vue/components/ResourceList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue index 636857763df..2feda9c1f87 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue @@ -103,9 +103,9 @@ export default { let columnActions = thisResource.tableOptions.actions; const columns = resourceAttrs.reduce((acc, attr, i) => { + const shouldFieldBeHidden = attr.hideIn && typeof attr.hideIn === "function" ? attr.hideIn() : attr.hideIn if ( - attr.hasOwnProperty("hideIn") && - attr.hideIn.includes("List") + shouldFieldBeHidden && shouldFieldBeHidden.includes("List") ) return acc; if ( -- 2.39.5