From 4fd264f4380fec717be03fa0abe69010376b512e Mon Sep 17 00:00:00 2001 From: Hieu Lam - TMA <135117837+lthanhhieu@users.noreply.github.com> Date: Mon, 21 Aug 2023 10:51:05 +0700 Subject: [PATCH] fix-9080: There was no result for searching with Ticket price "0.0" (#9115) * fix-9080: There was no result for searching with Ticket price 0.0 * fix-9080: There was no result for searching with Ticket price 0.0 --------- Co-authored-by: Khang On - TMA <135116292+khangon@users.noreply.github.com> --- app/mixins/ember-table-route.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/mixins/ember-table-route.js b/app/mixins/ember-table-route.js index d93fff10ccc..ecaf8de82c9 100644 --- a/app/mixins/ember-table-route.js +++ b/app/mixins/ember-table-route.js @@ -109,8 +109,8 @@ export default Mixin.create({ if (isNaN(params.search)) { continue; } - condition = 'eq'; - value = params.search; + condition = params.search && Number(params.search) !== 0 ? 'eq' : 'is_'; + value = params.search && Number(params.search) !== 0 ? params.search : null; } const filter = { name : splitField[0],