Skip to content

Commit

Permalink
Fix the Indication message on Number Filter for Between
Browse files Browse the repository at this point in the history
  • Loading branch information
kingmaker-agm committed Jul 13, 2023
1 parent 8aa0849 commit 5dedeb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Filters/NumberFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ protected function setUp(): void
if ($state['clause'] === self::CLAUSE_SET || $state['clause'] === self::CLAUSE_NOT_SET) {
return [$this->getLabel() . ' ' . $this->clauses()[$state['clause']]];
}
if ($state['clause'] === self::CLAUSE_BETWEEN) {
return [$this->getLabel() . ' ' . $this->clauses()[$state['clause']] . ' ' . ($state['from'] ?? 0) . ' and ' . ($state['until'] ?? "~")];
}
if ($state['value']) {
return [$this->getLabel() . ' ' . $this->clauses()[$state['clause']] . ' ' . $state['value']];
}
if ($state['from'] || $state['until']) {
return [$this->getLabel() . ' ' . $this->clauses()[$state['clause']] . ' ' . ($state['from'] ?? 0) . ' and ' . ($state['until'] ?? "~")];
}
}

return [];
Expand Down

0 comments on commit 5dedeb2

Please sign in to comment.