Skip to content

Commit

Permalink
Merge pull request #26 from kingmaker-agm/fix/indication-number-filte…
Browse files Browse the repository at this point in the history
…r-between

Fix the Indication message on Number Filter for Between
  • Loading branch information
dmandrade authored Jul 17, 2023
2 parents 368d95b + 5dedeb2 commit 8fd49dd
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 8fd49dd

Please sign in to comment.