fixed location filter

This commit is contained in:
vedatakd 2021-03-01 11:16:27 +03:00
parent b9a736cc55
commit af2d07b002

View File

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