? Success
Pull Request for # 9518

User tests: Successful: Unsuccessful:

avatar mbabker
mbabker
22 Mar 2016

Pull Request for Issue http://forum.joomla.org/viewtopic.php?f=710&t=913801&sid=d3a6b0d7e369a88213a0687721a77233

Summary of Changes

The related items module uses com_content to find items but does not ensure the com_content models are in the lookup path or validate the $articles assignment is a model object. This is corrected. As well, all returns in error conditions now match the documented return type of array.

Testing Instructions

Ensure the related items module functions as designed (sorry, I've never used it so couldn't tell you how it works, but from the code alone and knowing how Joomla doesn't autoload components it's easy to see how this would break on a non-com_content page).

avatar mbabker mbabker - open - 22 Mar 2016
avatar mbabker mbabker - change - 22 Mar 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Mar 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 22 Mar 2016
Rel_Number 0 9518
Relation Type Pull Request for
avatar brianteeman brianteeman - test_item - 22 Mar 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 22 Mar 2016

I have tested this item :white_check_mark: successfully on b09ad62


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

avatar brianteeman brianteeman - change - 22 Mar 2016
Milestone Added:
avatar brianteeman brianteeman - change - 22 Mar 2016
Milestone Added:
avatar joomdonation joomdonation - test_item - 22 Mar 2016 - Tested successfully
avatar joomdonation
joomdonation - comment - 22 Mar 2016

I have tested this item :white_check_mark: successfully on b09ad62

This PR solves the issue. However, looking at the code, I see that the module will only be displayed on article detail page. So maybe we should move most of the code in the method into if block https://github.com/joomla/joomla-cms/blob/staging/modules/mod_related_items/helper.php#L58 ?


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

avatar wilsonge wilsonge - change - 22 Mar 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-03-22 13:40:25
Closed_By wilsonge
avatar wilsonge wilsonge - close - 22 Mar 2016
avatar wilsonge wilsonge - merge - 22 Mar 2016
avatar wilsonge wilsonge - reference | 462ea82 - 22 Mar 16
avatar wilsonge wilsonge - merge - 22 Mar 2016
avatar wilsonge wilsonge - close - 22 Mar 2016
avatar wilsonge
wilsonge - comment - 22 Mar 2016

Merged on review

avatar mbabker mbabker - head_ref_deleted - 22 Mar 2016
avatar MixingOnBeat
MixingOnBeat - comment - 30 Mar 2016

Hello, I just wanted to report that I am the one that started the ticket at: #9654

I tried the fix proposed in the above commit and it works. My Search feature is restored. Hopefully my report helps?

Add a Comment

Login with GitHub to post a comment