Skip to content

Commit

Permalink
Replace correctly min and max values
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Sep 18, 2024
1 parent cd43289 commit 4bdd133
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Search/Request/RequestConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ public function manageRangeField(string $field): void
$min = (float) $range['min'];
$max = (float) $range['max'];
if ($min > $max) {
$min = $range['min']; // Take the original value, not casted
$range['min'] = $range['max'];
$range['max'] = $range['min'];
$range['max'] = $min;
}
}

Expand Down

0 comments on commit 4bdd133

Please sign in to comment.