Skip to content

Commit 6a7f252

Browse files
infograf768rdeutz
authored andcommitted
com_search category results not displaying date (#11802)
1 parent 4777d8d commit 6a7f252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/search/categories/categories.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,13 @@ public function onContentSearch($text, $phrase = '', $ordering = '', $areas = nu
154154
$case_when .= $query->concatenate(array($a_id, 'a.alias'), ':');
155155
$case_when .= ' ELSE ';
156156
$case_when .= $a_id . ' END as slug';
157-
$query->select('a.title, a.description AS text, \'\' AS created, \'2\' AS browsernav, a.id AS catid, ' . $case_when)
157+
$query->select('a.title, a.description AS text, a.created_time AS created, \'2\' AS browsernav, a.id AS catid, ' . $case_when)
158158
->from('#__categories AS a')
159159
->where(
160160
'(a.title LIKE ' . $text . ' OR a.description LIKE ' . $text . ') AND a.published IN (' . implode(',', $state) . ') AND a.extension = '
161161
. $db->quote('com_content') . 'AND a.access IN (' . $groups . ')'
162162
)
163-
->group('a.id, a.title, a.description, a.alias')
163+
->group('a.id, a.title, a.description, a.alias, a.created_time')
164164
->order($order);
165165

166166
if ($app->isSite() && JLanguageMultilang::isEnabled())

0 commit comments

Comments
 (0)