Skip to content

Commit

Permalink
AENV-445 - Related articles is not working by API 500 message
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Mar 30, 2015
1 parent 4f8c8c5 commit 0cbe5ba
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,11 @@ public function relatedArticlesAction(Request $request, $number, $language = nul
$ids[] = $relatedArticle->getArticleNumber();
}

$articleSearchCriteria = new ArticleSearchCriteria();
$articleSearchCriteria->language = $article->getLanguage()->getCode();
$articles = $em->getRepository('Newscoop\Entity\Article')
->getArticlesByIds(
$article->getLanguage()->getCode(),
$articleSearchCriteria,
$ids,
$onlyPublished
);
Expand Down

0 comments on commit 0cbe5ba

Please sign in to comment.