Merge pull request #804 from openclassify/vedat

fixed search country problem
This commit is contained in:
spektra2147 2020-11-20 11:29:45 +03:00 committed by GitHub
commit 2984e6711e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,8 +66,8 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
});
}
}
if (!setting_value('visiosoft.module.location::hide_location_filter')) {
$country = isset($param['country']) ? $param['country'] : setting_value('visiosoft.module.location::default_country');
if (!setting_value('visiosoft.module.location::hide_location_filter') and isset($param['country'])) {
$country = !empty($param['country']) ? $param['country'] : setting_value('visiosoft.module.location::default_country');
if ($country) {
$query = $query->where('country_id', $country);
}