Pending

User tests: Successful: Unsuccessful:

avatar n3t
n3t
24 Nov 2017

Summary of Changes

Changed SQL query join of #__fields and #__fields_values table to join in proper order.

In original SQL #__fields_values are joined based on item_id, and in WHERE section is condition for fields only with context 'com_content.article'. If category with same id as searched article exists, #__fields_values row for such category will be joined, and the where condition removes the row completely from result.

Proposed SQL joins first all fields with context 'com_content.article' and rows from #__fields_values only for such fields.

Testing Instructions

  • Create 1 field for com_content.categories context.
  • Create 1 category and fill that field value.
  • Create 1 article.
  • Make sure that created article has same id as category, if needed create so many articles or categories so there will be 1 article with same id as category.
  • Go to frontend and search that article title using com_search.
  • apply the patch and search again.

Expected result

Article should be found.

Actual result

Article is not found. After applying patch, article is found.

avatar n3t n3t - open - 24 Nov 2017
avatar n3t n3t - change - 24 Nov 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 24 Nov 2017
Category Front End Plugins
avatar ladyjer ladyjer - test_item - 24 Nov 2017 - Tested successfully
avatar ladyjer
ladyjer - comment - 24 Nov 2017

I have tested this item successfully on 12fdbec


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

avatar joomla-cms-bot joomla-cms-bot - close - 25 Apr 2018
avatar Quy Quy - change - 25 Apr 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-04-25 22:21:25
Closed_By Quy
avatar joomla-cms-bot
joomla-cms-bot - comment - 25 Apr 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/18838

avatar Quy
Quy - comment - 25 Apr 2018

This PR is obsolete due to PR #18915.


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

Add a Comment

Login with GitHub to post a comment