Skip to content

Commit

Permalink
Merge pull request #223 from maximehuran/feature/fix-price-range
Browse files Browse the repository at this point in the history
Replace correctly min and max values
  • Loading branch information
maximehuran authored Sep 18, 2024
2 parents cd43289 + 4bdd133 commit a58db2b
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 a58db2b

Please sign in to comment.