- Affected version
- 2.1.7
In
actionMember
, there is this code;
Code:
$content = $this->filter('content', 'str');
if ($content && $searcher->isValidContentType($content))
{
$query->inType($content);
$constraints['content'] = $content;
}
...
$grouped = $this->filter('grouped', 'bool');
if ($grouped && $content && $searcher->isValidContentType($content))
{
$typeHandler = $searcher->handler($content);
$dummyConstraints = [];
$query->forTypeHandler($typeHandler, $this->request, $dummyConstraints);
$query->withGroupedResults();
}
forTypeHandler
is only called if grouped
is true, which doesn't make sense for something like a thread
content type.