Merge pull request #1282 from openclassify/5253

#5253 [evdepismis] needs
This commit is contained in:
Dia Shalabi 2022-02-02 17:48:48 +03:00 committed by GitHub
commit 8417a2885b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,9 +74,6 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
$query = $query->where('city', $city->id);
} elseif (isset($param['city']) and !empty(array_filter($param['city']))) {
$query = $query->whereIn('city', explode(',', array_first($param['city'])));
} elseif ($selectedCity = request()->cookie('selectedCity')) {
$selectedCity = json_decode($selectedCity);
$query = $query->where('city', $selectedCity->id);
}
if (isset($param['district']) and !empty(array_filter($param['district']))) {
$query = $query->whereIn('district', explode(',', array_first($param['district'])));