From df8c97788891b5fa2df8222e640e97262e5b4e1a Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 12 Sep 2016 13:50:14 -0500 Subject: [PATCH] Fix list forum posts with nested view --- main/forum/forumfunction.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/forum/forumfunction.inc.php b/main/forum/forumfunction.inc.php index 888d53ac4e..c2ff555ae0 100755 --- a/main/forum/forumfunction.inc.php +++ b/main/forum/forumfunction.inc.php @@ -1904,7 +1904,7 @@ function getPosts($forumInfo, $threadId, $orderDirection = 'ASC', $recursive = f $criteria = Criteria::create(); $criteria ->where(Criteria::expr()->eq('threadId', $threadId)) - ->andWhere(Criteria::expr()->eq('cId', api_get_course_int_id())) + ->andWhere(Criteria::expr()->eq('cId', $forumInfo['c_id'])) ->andWhere($visibleCriteria) ; @@ -1973,7 +1973,7 @@ function getPosts($forumInfo, $threadId, $orderDirection = 'ASC', $recursive = f } } - $list[$post->getIid()] = $postInfo; + $list[] = $postInfo; if (!$recursive) { continue;