From 67b9562cf6b2b8d47ce9700af8c397fff4310977 Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Fri, 27 Dec 2024 10:23:46 +0700 Subject: [PATCH] update search to lower --- src/helpers/common.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/common.ts b/src/helpers/common.ts index fd8b06c..d8fa095 100644 --- a/src/helpers/common.ts +++ b/src/helpers/common.ts @@ -121,10 +121,10 @@ export default class CommonHelper { } if (param.col_any_eq.length > 0) { - whereVal['filter_eq'] = filter_any_val; + whereVal['filter_eq'] = filter_any_val.toLowerCase(); } if (param.col_any_like.length > 0) { - whereVal['filter_like'] = '%' + filter_any_val + '%'; + whereVal['filter_like'] = '%' + filter_any_val.toLowerCase() + '%'; } } } catch (e: any) { @@ -158,7 +158,7 @@ export default class CommonHelper { whereVal['filter_eq'] = param.filter.toLowerCase(); } if (param.col_any_like.length > 0) { - whereVal['filter_like'] = '%' + param.filter + '%'; + whereVal['filter_like'] = '%' + param.filter.toLowerCase() + '%'; } }