added sahibinden check icon and show features for web view && fixed get categories

This commit is contained in:
vedatakd 2021-01-09 12:04:41 +03:00
parent 23d596b78b
commit 36756b046f

View File

@ -782,8 +782,14 @@ class AdvsController extends PublicController
} }
} }
$get_categories = in_array($adv->cat1, setting_value('visiosoft.module.advs::get_categories')); $get_categories_status = false;
$adv->is_get_adv = ($request->is_get_adv and $get_categories) ? true : false; if ($get_categories = setting_value('visiosoft.module.advs::get_categories') and $get_categories = in_array($adv->cat1, $get_categories)) {
$get_categories_status = true;
}
$adv->is_get_adv = ($request->is_get_adv and $get_categories_status) ? true : false;
$adv->save(); $adv->save();
//algolia Search Module //algolia Search Module
@ -803,7 +809,9 @@ class AdvsController extends PublicController
$CloudinaryModel = new VideoModel(); $CloudinaryModel = new VideoModel();
$CloudinaryModel->updateRequest($request); $CloudinaryModel->updateRequest($request);
if ($request->url != "") { $adv->save(); } if ($request->url != "") {
$adv->save();
}
} }
if ($this->adv_model->is_enabled('customfields')) { if ($this->adv_model->is_enabled('customfields')) {
app('Visiosoft\CustomfieldsModule\Http\Controller\cfController')->store($adv, $request); app('Visiosoft\CustomfieldsModule\Http\Controller\cfController')->store($adv, $request);