Browse Source

[Frontend] Actus : correctif

feature/export_comptable
Guillaume 4 years ago
parent
commit
3ab17741e7
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ShopBundle/Repository/NewsRepository.php

+ 2
- 0
ShopBundle/Repository/NewsRepository.php View File

@@ -24,6 +24,8 @@ class NewsRepository extends BaseRepository implements DefaultRepositoryInterfac
$result = $this->findByMerchantQuery()
->orderBy('e.date', 'DESC') ;

$result->andWhere('e.status = 1') ;

if($maxResults) {
$result->setMaxResults($maxResults) ;
}

Loading…
Cancel
Save