Bugzilla – Attachment 169811 Details for
Bug 37288
Edit data provider form does not show the name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37288: Allow manual providers to be edited
Bug-37288-Allow-manual-providers-to-be-edited.patch (text/plain), 2.05 KB, created by
Matt Blenkinsop
on 2024-07-29 08:55:58 UTC
(
hide
)
Description:
Bug 37288: Allow manual providers to be edited
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2024-07-29 08:55:58 UTC
Size:
2.05 KB
patch
obsolete
>From 1a0a42e69a416711219f0dc626c1c3febcb59ff3 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Mon, 29 Jul 2024 08:52:39 +0000 >Subject: [PATCH] Bug 37288: Allow manual providers to be edited > >There is a bug preventing manually created providers from being edited. This patch fixes that issue and allows providers to be edited if they have been created manually > >Test plan: >1) Create a data provider in the ERM manually using the Create manually option >2) Click to edit that provider >3) The form will not load >4) Apply patch and run yarn build >5) Hard refresh the browser >6) The form should now load correctly >--- > .../components/ERM/UsageStatisticsDataProvidersFormAdd.vue | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue >index 8311922e2b2..b205956d2da 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue >+++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/UsageStatisticsDataProvidersFormAdd.vue >@@ -455,7 +455,7 @@ export default { > client.counter_registry.getAll({ name: query }).then( > registry_data => { > this.registry_data = registry_data >- if (caller === "edit") { >+ if (caller === "edit" && registry_data.length > 0) { > this.selected_provider = registry_data.find( > platform => > platform.name === this.usage_data_provider.name >@@ -466,6 +466,8 @@ export default { > r => r.report_id === report.value > ) > ) >+ } else { >+ this.manual_form = true > } > this.searching = false > this.initialized = true >-- >2.39.3 (Apple Git-146)
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 37288
:
169074
|
169793
|
169811
|
169816
|
169817
|
169934
|
169935