From ea8b9774a81a26f5b4fc5763b1569bbf7044dbb7 Mon Sep 17 00:00:00 2001 From: Abdul Rahman Reza Date: Fri, 27 Dec 2024 10:22:05 +0700 Subject: [PATCH] update 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 9bbc062..8f77db8 100644 --- a/src/helpers/common.ts +++ b/src/helpers/common.ts @@ -149,10 +149,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) { @@ -186,7 +186,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() + '%'; } }