Bugzilla – Attachment 188390 Details for
Bug 41063
Additional fields are broken in Vue (values entered are not saved)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41063: Allow setting of a group for additional fields
Bug-41063-Allow-setting-of-a-group-for-additional-.patch (text/plain), 2.26 KB, created by
David Nind
on 2025-10-23 18:25:52 UTC
(
hide
)
Description:
Bug 41063: Allow setting of a group for additional fields
Filename:
MIME Type:
Creator:
David Nind
Created:
2025-10-23 18:25:52 UTC
Size:
2.26 KB
patch
obsolete
>From deebda3d3f4f17e82b50d257f1a8ebf3f4d5c8e3 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk> >Date: Tue, 21 Oct 2025 14:09:31 +0100 >Subject: [PATCH] Bug 41063: Allow setting of a group for additional fields > >Signed-off-by: David Nind <david@davidnind.com> >--- > .../intranet-tmpl/prog/js/vue/composables/base-resource.js | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-resource.js b/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-resource.js >index 3c0188f484..df7a2244be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-resource.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/composables/base-resource.js >@@ -38,6 +38,7 @@ import { > * @param {Function} resourceConfig.afterResourceFetch - A function to call after the resource is fetched. This can be used to edit resource data or fetch additional data > * @param {Boolean} resourceConfig.embedded - A flag to indicate whether the resource is actually being used as a child component of another resource e.g. embedding a list of agreeements into EBSCO package agreements > * @param {String} resourceConfig.extendedAttributesResourceType - The resource type for extended attributes, if applicable. >+ * @param {String} resourceConfig.extendedAttributesFieldGroup - The field group that you would like the additional fields to be displayed in. > * @param {Function} resourceConfig.defaultToolbarButtons - A function to amend default buttons in the toolbar. > * @param {Function} resourceConfig.additionalToolbarButtons - A function to add additional buttons to the toolbar. > * @param {String} resourceConfig.formGroupsDisplayMode - The display mode for the form groups if not the default. Can be one of the following: "accordion", "tabs". >@@ -433,6 +434,9 @@ export function useBaseResource(resourceConfig) { > type: "additional_fields", > extended_attributes_resource_type: > resourceConfig.extendedAttributesResourceType, >+ ...(resourceConfig.extendedAttributesFieldGroup && { >+ group: resourceConfig.extendedAttributesFieldGroup, >+ }), > }); > } > const groupings = attributesToConsider.reduce((acc, attr) => { >-- >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 41063
:
188212
|
188216
|
188228
|
188363
|
188389
|
188390
|
188752
|
188753