From 8657023a7643d193d45a807bd33125f0ac677ed2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 3 Oct 2023 10:22:46 +0200 Subject: [PATCH] Bug 32474: Pass label and identifier --- .../vue/components/ERM/AgreementLicenses.vue | 4 ++ .../vue/components/InfiniteScrollSelect.vue | 37 ++++--------------- 2 files changed, 12 insertions(+), 29 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue index cab8cb1927a..cdec13a7c80 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/ERM/AgreementLicenses.vue @@ -22,7 +22,10 @@ {{ $__("Required") }} @@ -124,6 +127,7 @@ export default { physical_location: null, notes: "", uri: "", + license: { name: "" }, }) }, deleteLicense(counter) { diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/InfiniteScrollSelect.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/InfiniteScrollSelect.vue index f92726b3a02..9dac42b8087 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/InfiniteScrollSelect.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/InfiniteScrollSelect.vue @@ -2,7 +2,7 @@ - item[this.queryProperty].includes(this.search) + item[this.label].includes(this.search) ) }, paginated() { @@ -124,7 +103,7 @@ export default { this.data = [] this.search = e const client = APIClient.erm - const attribute = "me." + this.queryProperty + const attribute = "me." + this.label const q = {} q[attribute] = { like: `%${e}%` } await client[this.dataType] -- 2.34.1