Reset the criterea before a new search
This commit is contained in:
@@ -111,7 +111,7 @@ class FlightRepository extends Repository implements CacheableInterface
|
||||
|
||||
// Distance, less than
|
||||
if ($request->filled('dlt')) {
|
||||
$where[] = ['distance', '<', $request->dlt];
|
||||
$where[] = ['distance', '<=', $request->dlt];
|
||||
}
|
||||
|
||||
$this->pushCriteria(new WhereCriteria($request, $where));
|
||||
|
||||
Reference in New Issue
Block a user