diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 4bf59cb2..b4ba9624 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -5,10 +5,9 @@ MISC ITEMS THAT CAME UP -todo: search for customer field that is in the weeds see what the result summary looks like because it seems sketchy, do this before moving on to rest below + todo: All objects, check biz searchresult code to ensure all text fields were added as some were probably missed, particularly recent ones - This is very fucked up, Customer has nothing being indexed but standard fields - perhaps it's better changed to a reflection method that finds the text? But then sometimes you don't want a field indexed...fuck + todo: newer objects use full translation key for form field definitions but some forms have abbreviated or lower case for ShowMe() code, double check recent todo: grid list filter needs to have a single button to reset / clear to default because things like review will always be having their filters set diff --git a/ayanova/src/views/home-search.vue b/ayanova/src/views/home-search.vue index 4ed20d02..4114c33a 100644 --- a/ayanova/src/views/home-search.vue +++ b/ayanova/src/views/home-search.vue @@ -217,15 +217,12 @@ export default { window.$gz.form.setErrorBoxErrors(vm); } else { let showInfo = res.data; - let searchTerms = vm.searchPhrase - .toLocaleLowerCase() - .replace(/[*]/gi, "") - .split(" "); + let searchTerms = vm.searchPhrase.replace(/[*]/gi, "").split(" "); for (let i = 0; i < searchTerms.length; i++) { - showInfo = showInfo.replace( - searchTerms[i], - "" + searchTerms[i] + "" - ); + let regEx = new RegExp(searchTerms[i], "ig"); + let replaceMask = + "" + searchTerms[i] + ""; + showInfo = showInfo.replace(regEx, replaceMask); } item.info = showInfo;