Skip to content

Commit

Permalink
fix-9080: There was no result for searching with Ticket price "0.0" (#…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Hieu Lam - TMA and khangon authored Aug 21, 2023
1 parent 47a50e8 commit b4307ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/mixins/ember-table-route.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit b4307ec

Please sign in to comment.