From 98ffd25d69c6020357f92edc517719af22819259 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 20 Mar 2024 14:18:38 -0600 Subject: [PATCH] SearchMixin: Fix localSearch did not get search options --- api/js/etemplate/Et2Widget/SearchMixin.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/api/js/etemplate/Et2Widget/SearchMixin.ts b/api/js/etemplate/Et2Widget/SearchMixin.ts index aed19d997f..fb298bda5f 100644 --- a/api/js/etemplate/Et2Widget/SearchMixin.ts +++ b/api/js/etemplate/Et2Widget/SearchMixin.ts @@ -292,11 +292,10 @@ export const SearchMixin = (search : string, option : DataType) : boolean + public searchMatch(search : string, searchOptions : Object, option : DataType) : boolean { if(!option || !option.value) { @@ -341,7 +340,7 @@ export const SearchMixin = (value, option)) + if(this.searchMatch(value, searchOptions, option)) { local.results.push(option); local.total++;