diff --git a/plugins/search/content/content.php b/plugins/search/content/content.php index 1a36f11b8d06c..d782b0a329f25 100644 --- a/plugins/search/content/content.php +++ b/plugins/search/content/content.php @@ -168,7 +168,7 @@ public function onContentSearch($text, $phrase = '', $ordering = '', $areas = nu $case_when1 .= ' ELSE '; $case_when1 .= $c_id . ' END as catslug'; - $query->select('a.title AS title, a.metadesc, a.metakey, a.created AS created, a.language') + $query->select('a.title AS title, a.metadesc, a.metakey, a.created AS created, a.language, a.catid') ->select($query->concatenate(array('a.introtext', 'a.fulltext')) . ' AS text') ->select('c.title AS section, ' . $case_when . ',' . $case_when1 . ', ' . '\'2\' AS browsernav')