? Success

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
25 Aug 2015

This is the PR for the issue #7711.

Steps to reproduce the issue

1) Have smart search enabled incl. "categories" finder plugin
2) Edit a category: change title/alias/description, but do not touch state or access. Save.
3) Search for a relevant keyword to get this category in search results

Expected result

Updated title/alias/description of the category in search result

Actual result

Old title/alias/descriptipon

System information (as much as possible)

Additional comments

I believe a closing bracket should be moved from line 136 to line 133 in categories.php finder plugin.

            if (!$isNew && $this->old_access != $row->access)
            {
                // Process the change.
                $this->itemAccessChange($row);

                // Reindex the category item.
                $this->reindex($row->id);
            }

to become

            if (!$isNew && $this->old_access != $row->access)
            {
                // Process the change.
                $this->itemAccessChange($row);
            }

            // Reindex the category item.
            $this->reindex($row->id);           
avatar laoneo laoneo - open - 25 Aug 2015
avatar laoneo laoneo - change - 25 Aug 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 Aug 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 25 Aug 2015
Easy No Yes
avatar zero-24 zero-24 - change - 25 Aug 2015
Category Plugins
avatar zero-24 zero-24 - test_item - 26 Aug 2015 - Tested successfully
avatar zero-24
zero-24 - comment - 26 Aug 2015

Tested successfull. Thanks @laoneo

@tgv604 can you also test here? If you need help let me know. The quick step testing docu can be found here: https://docs.joomla.org/Testing_Joomla!_patches


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

avatar watchfulli-dev
watchfulli-dev - comment - 26 Aug 2015

@test unfortunately even after I apply the patch, the old data is shown in search result, here are the steps I followed:

  1. Changed a category title/alias/description
  2. Enabled smart search module in website frontend
  3. Tried to search for that category.
  4. In the search result I still see the old title/description of the category
    This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7769.
avatar watchfulli-dev watchfulli-dev - test_item - 26 Aug 2015 - Tested unsuccessfully
avatar zero-24
zero-24 - comment - 26 Aug 2015

@watchfulli-dev did you enable the "Content - Smart Search" Plugin? Bevor you change something?

avatar watchfulli-dev
watchfulli-dev - comment - 26 Aug 2015

@zero-24 yes the plugin was already enabled/published

avatar watchfulli-dev
watchfulli-dev - comment - 26 Aug 2015

@zero-24 can you check it the steps I followed are the correct one ? Or should I re-save the category after applying the patch ?

avatar laoneo
laoneo - comment - 26 Aug 2015

@watchfulli-dev After you have applied the patch you need to resave the category.

avatar zero-24
zero-24 - comment - 26 Aug 2015

hmm can you check the backend view?

I can't reproduce this issue after applying this patch ;)

see:
backend category edit:
animals_2

com_finder backend
animals_1

com_finder frontend
animals_3

And if i change the category in the backend i can see the changes that gets applyed to the frontend as well ;)

animals_4

I guess the other smart seach plugin (Smart Search - Categories) is enabled as well ;)

avatar watchfulli-dev
watchfulli-dev - comment - 26 Aug 2015

@test Okay that worked now if I re-save category after applying the patch


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

avatar watchfulli-dev watchfulli-dev - test_item - 26 Aug 2015 - Tested successfully
avatar zero-24 zero-24 - change - 26 Aug 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 26 Aug 2015

Yes that is required as the plugin event run on saving ;) RTC'ing than. Thanks @watchfulli-dev and @laoneo !


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

avatar joomla-cms-bot joomla-cms-bot - change - 26 Aug 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 26 Aug 2015
Milestone Added:
avatar RickR2H RickR2H - test_item - 26 Aug 2015 - Tested successfully
avatar laoneo
laoneo - comment - 26 Aug 2015

:+1:

avatar wilsonge wilsonge - close - 26 Aug 2015
avatar joomla-cms-bot joomla-cms-bot - close - 26 Aug 2015
avatar wilsonge wilsonge - reference | 898c440 - 26 Aug 15
avatar wilsonge wilsonge - merge - 26 Aug 2015
avatar wilsonge wilsonge - close - 26 Aug 2015
avatar wilsonge wilsonge - change - 26 Aug 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-08-26 16:43:03
Closed_By wilsonge
avatar joomla-cms-bot joomla-cms-bot - change - 26 Aug 2015
Labels Removed: ?
avatar wilsonge
wilsonge - comment - 26 Aug 2015

Merged into staging! Thanks!

avatar laoneo laoneo - head_ref_deleted - 27 Aug 2015

Add a Comment

Login with GitHub to post a comment