Reset the criterea before a new search

This commit is contained in:
Nabeel Shahzad
2019-05-11 11:37:06 -05:00
parent 65bd6888e8
commit 7fce5421b4
6 changed files with 16 additions and 6 deletions

View File

@@ -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));