Merge pull request #403 from openclassify/vedat

#1089 fixed profile my ads
This commit is contained in:
Fatih Alp 2020-03-11 16:35:57 +03:00 committed by GitHub
commit e996f60e6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,8 @@ class AjaxController extends PublicController
$page_title = trans('visiosoft.module.advs::field.my_adv.name');
$my_advs = $my_advs->myAdvsByUser();
}
$my_advs = $my_advs->orderByDesc('id');
$my_advs = $my_advs->orderByDesc('id')->select(['id', 'cover_photo', 'slug', 'price',
'currency', 'city', 'country_id', 'cat1', 'cat2', 'status']);
$my_advs = $advRepository->addAttributes($my_advs->get());
foreach ($my_advs as $index => $ad) {