Bugzilla – Attachment 189905 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
c8b5af0.patch (text/plain), 1.44 KB, created by
Jonathan Druart
on 2025-11-24 09:47:49 UTC
(
hide
)
Description:
Bug 41214: Apply the same logic to table columns
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-11-24 09:47:49 UTC
Size:
1.44 KB
patch
obsolete
>From c8b5af04a853cb39571008b80b8679fe2fef5c6e 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> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../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.43.0 >
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