Compare commits

..

1 Commits

Author SHA1 Message Date
Grégoire 1a9fff778a fix : search bar 2019-12-30 12:27:11 +01:00
2 changed files with 5 additions and 5 deletions
@@ -15,9 +15,9 @@ services:
class: AppBundle\Utils\Services\AfterLoginRedirection
arguments: ['@router']
#app.ad_searcher:
# class: AppBundle\Utils\Services\AdSearcher
# arguments: ['@fos_elastica.finder.ads.adfr']
app.ad_searcher:
class: AppBundle\Utils\Services\AdSearcher
arguments: ['@fos_elastica.finder.ads.adfr']
app.ad_tags_searcher:
class: AppBundle\Utils\Services\AdSearcher
@@ -309,8 +309,8 @@ class AdController extends Controller
} else {
$session->remove('contratSearch');
}
//$adSearcher = $this->get('app.ad_searcher');
$ads = array();//$adSearcher->process($data);
$adSearcher = $this->get('app.ad_searcher');
$ads = array();$adSearcher->process($data);
if(empty($ads)){
$ads = $this->getPublishedAds($promoted);
$noResults = true;