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]