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
2 people authored and norbusan committed Mar 26, 2024
1 parent a14ea9e commit 4fd264f
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 4fd264f

Please sign in to comment.