Solved fetchExtraContentForThreadsFullView is not passed sticky threads

This topic has been solved
X

Xon

Guest
In XF\Pub\Controller\Forum::actionForum:

PHP:

Code:
$allThreads = $threads;
if ($stickyThreads)
{
    $allThreads->merge($stickyThreads);
}
$forumTypeHandler->fetchExtraContentForThreadsFullView($forum, $allThreads);

The ArrayCollection::merge returns a new instance, and doesn't modify the existing copy, meaning sticky threads are not passed to fetchExtraContentForThreadsFullView

Continue reading...