diff --git a/api/js/etemplate/Et2Select/SearchMixin.ts b/api/js/etemplate/Et2Select/SearchMixin.ts index ab8dab43da..fc4548179e 100644 --- a/api/js/etemplate/Et2Select/SearchMixin.ts +++ b/api/js/etemplate/Et2Select/SearchMixin.ts @@ -331,9 +331,9 @@ export const Et2WithSearchMixin = >(superclass // Overridden to add options if allowFreeEntries=true if(this.allowFreeEntries) { - if(typeof this.value == "string" && !this.select_options.find(o => o.value == value)) + if(typeof this.value == "string" && !this.select_options.find(o => o.value == this.value)) { - this.createFreeEntry(value); + this.createFreeEntry(this.value); } else {