Skip to content

Commit a58db2b

Browse files
authored
Merge pull request #223 from maximehuran/feature/fix-price-range
Replace correctly min and max values
2 parents cd43289 + 4bdd133 commit a58db2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Search/Request/RequestConfiguration.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ public function manageRangeField(string $field): void
101101
$min = (float) $range['min'];
102102
$max = (float) $range['max'];
103103
if ($min > $max) {
104+
$min = $range['min']; // Take the original value, not casted
104105
$range['min'] = $range['max'];
105-
$range['max'] = $range['min'];
106+
$range['max'] = $min;
106107
}
107108
}
108109

0 commit comments

Comments
 (0)