From 232a7366854f5e80aa6eb7417be6043110d2b68a 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 Signed-off-by: Jonathan Druart Signed-off-by: Lucas Gass (cherry picked from commit 76d7a0bc72a3ad070c6ee3cb8c0a5c7b89bd05ee) Signed-off-by: Jacob O'Mara --- .../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 f8b4c3e70d..753de46bde 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ResourceList.vue @@ -116,9 +116,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 (