Bugzilla – Attachment 189702 Details for
Bug 41214
Cash register should only show if UseCashRegisters sys pref is enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41214: Apply the same logic to table columns
Bug-41214-Apply-the-same-logic-to-table-columns.patch (text/plain), 1.36 KB, created by
Pedro Amorim
on 2025-11-19 11:40:55 UTC
(
hide
)
Description:
Bug 41214: Apply the same logic to table columns
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2025-11-19 11:40:55 UTC
Size:
1.36 KB
patch
obsolete
>From 539d8050389c6065a5883f57f7062f6bd34b1b09 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >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 <pedro.amorim@openfifth.co.uk> >Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >--- > .../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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41214
:
189263
|
189322
|
189695
|
189697
|
189698
|
189699
|
189700
|
189701
|
189702
|
189902
|
189903
|
189904
|
189905