From 123e259a787e6c847231d0a348455fbbe472d989 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 Signed-off-by: Matt Blenkinsop Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- .../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 cab8cb1927..cdec13a7c8 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 f92726b3a0..9dac42b808 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.39.5