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

$result = $this->findByMerchantQuery() $result = $this->findByMerchantQuery()
->orderBy('e.date', 'DESC') ; ->orderBy('e.date', 'DESC') ;


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

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

Loading…
Cancel
Save