?
avatar ghazal
ghazal
25 Aug 2016

Steps to reproduce the issue

Use com_search component.
Search for a word that is present in a category description and in some articles.

Expected result

Should show date of creation of category in results.

Actual result

Doesn't show date of creation of category.
But displays it for articles, as expected.

System information (as much as possible)

Joomla 3.6.2

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
3.00

avatar ghazal ghazal - open - 25 Aug 2016
avatar zero-24 zero-24 - change - 25 Aug 2016
Category Front End Search
avatar infograf768
infograf768 - comment - 25 Aug 2016

Can you test by exchanging these lines?

diff --git a/plugins/search/categories/categories.php b/plugins/search/categories/categories.php
index 89593ce..5613a49 100644
--- a/plugins/search/categories/categories.php
+++ b/plugins/search/categories/categories.php
@@ -155,5 +155,5 @@
        $case_when .= ' ELSE ';
        $case_when .= $a_id . ' END as slug';
-       $query->select('a.title, a.description AS text, \'\' AS created, \'2\' AS browsernav, a.id AS catid, ' . $case_when)
+       $query->select('a.title, a.description AS text, a.created_time AS created, \'2\' AS browsernav, a.id AS catid, ' . $case_when)
            ->from('#__categories AS a')
            ->where(
@@ -161,5 +161,5 @@
                . $db->quote('com_content') . 'AND a.access IN (' . $groups . ')'
            )
-           ->group('a.id, a.title, a.description, a.alias')
+           ->group('a.id, a.title, a.description, a.alias, a.created_time')
            ->order($order);

avatar ghazal
ghazal - comment - 25 Aug 2016

I'd say : nickel chrome !
In other words, it works all right.
I guess you should do a PR for this.
Anyway, thanks.

avatar infograf768
infograf768 - comment - 26 Aug 2016

Please confirm patch
#11802

avatar infograf768 infograf768 - change - 26 Aug 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-08-26 05:49:26
Closed_By infograf768
avatar joomla-cms-bot joomla-cms-bot - change - 26 Aug 2016
Closed_By infograf768 joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 26 Aug 2016
avatar joomla-cms-bot
joomla-cms-bot - comment - 26 Aug 2016
avatar infograf768
infograf768 - comment - 26 Aug 2016

Closed as we have a patch

#11802


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11783.

Add a Comment

Login with GitHub to post a comment