@@ -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) ; | |||
} |