Bugzilla – Attachment 189534 Details for
Bug 40942
Vendor's contacts not displayed nicely on the vendor detail view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40942: Hide the 'Contacts' block if nothing to display
7a9615d.patch (text/plain), 1.26 KB, created by
Jonathan Druart
on 2025-11-13 09:08:05 UTC
(
hide
)
Description:
Bug 40942: Hide the 'Contacts' block if nothing to display
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2025-11-13 09:08:05 UTC
Size:
1.26 KB
patch
obsolete
>From 7a9615d9485337197b57412fba4d49436e9a27b2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 13 Nov 2025 09:58:42 +0100 >Subject: [PATCH] Bug 40942: Hide the 'Contacts' block if nothing to display > >If there is no contact we should hide the "Contacts" block on the "show" >view. > >Fixes VueFramework_spec.ts >AssertionError: Timed out retrying after 10000ms: Expected to find content: 'Contracts' within the element: <fieldset.rows> but never did. >--- > .../prog/js/vue/components/Vendors/VendorResource.vue | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue >index 24b16e98f68..a86135dfba0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/Vendors/VendorResource.vue >@@ -788,6 +788,7 @@ export default { > return [ > { > name: $__("Contacts"), >+ hidden: vendor => !!vendor.contacts?.length, > showElement: { > type: "table", > columnData: "contacts", >-- >2.34.1 >
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 40942
:
188360
|
188367
|
188368
|
188369
|
188663
|
188664
| 189534