? Success

User tests: Successful: Unsuccessful:

avatar roland-d
roland-d
4 Nov 2016

Summary of Changes

With the merge of #11833 the search filter broke. See here:
https://github.com/joomla/joomla-cms/pull/11833/files#diff-b32bbae639a4113309650b03c2b09ba1L113

The line $wheres[] = implode(' OR ', $wheres2); got removed by accident it looks. This PR adds this line back.

Testing Instructions

  1. Install Joomla with sample data
  2. Go to the front-end and search for any word with the search box in the top right corner
  3. You will see an error notice "An error has occured"
  4. Apply patch
  5. Re-run the search query and the error is gone.

Documentation Changes Required

None

avatar roland-d roland-d - open - 4 Nov 2016
avatar roland-d roland-d - change - 4 Nov 2016
Status New Pending
avatar roland-d roland-d - change - 4 Nov 2016
Milestone Added:
avatar joomla-cms-bot joomla-cms-bot - change - 4 Nov 2016
Category Front End Plugins
avatar Luchen6 Luchen6 - test_item - 4 Nov 2016 - Tested successfully
avatar Luchen6
Luchen6 - comment - 4 Nov 2016

I have tested this item successfully on e39a438

Patch is working correctly


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

avatar Martijn-Boomsma Martijn-Boomsma - test_item - 4 Nov 2016 - Tested successfully
avatar Martijn-Boomsma
Martijn-Boomsma - comment - 4 Nov 2016

I have tested this item successfully on e39a438

- I have installed Joomla with sample data

avatar roland-d roland-d - change - 4 Nov 2016
Status Pending Ready to Commit
avatar roland-d
roland-d - comment - 4 Nov 2016

Setting RTC


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

avatar infograf768
infograf768 - comment - 4 Nov 2016

wonder why that file was changed with the com_fields pr. how is it related to that?

avatar roland-d
roland-d - comment - 4 Nov 2016

@infograf768 Did you check the code? It adds a filter to the com_fields table.

avatar infograf768
infograf768 - comment - 4 Nov 2016

and this exactly what i wonder about. why adding the fields filter? i do not understand the use at all.
@laoneo can you explain?

avatar mbabker
mbabker - comment - 4 Nov 2016

To make field data searchable? I remember seeing this thread on the other repo but don't remember what it resulted in.

avatar roland-d
roland-d - comment - 4 Nov 2016

@infograf768 That is another question not related to this PR. Fact remains that the code is broken by removing this specific line.

avatar infograf768
infograf768 - comment - 4 Nov 2016

@roland-d
I understand what you say. The matter is that I wonder what the whole change in #11833 concerning this plugin is about and if it is really useful. With example. Useful to know before taking care of this error. Maybe we would have to revert the whole change.

avatar dgt41
dgt41 - comment - 4 Nov 2016

@roland-d just a heads up here, implode should be executed only on non-empty arrays: #12321 (comment)
I thing this is something that needs to be patched is several models

avatar wilsonge wilsonge - merge - 4 Nov 2016
avatar wilsonge wilsonge - close - 4 Nov 2016
avatar wilsonge wilsonge - close - 4 Nov 2016
avatar wilsonge wilsonge - merge - 4 Nov 2016
avatar wilsonge wilsonge - reference | 6f30503 - 4 Nov 16
avatar wilsonge wilsonge - change - 4 Nov 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-11-04 16:18:03
Closed_By wilsonge
avatar infograf768
infograf768 - comment - 4 Nov 2016

Tested. Search fields value may or may not work depending on field.
For example Text and Timezone work but not list

Add a Comment

Login with GitHub to post a comment