? Success

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
26 Oct 2016

Pull Request for similar Issue #12557.

Summary of Changes

Referenced PR changes one instance where we tried to create a Registry object from a Registry object.
After scanning the PR which introduced that bug I found several more instances of the same error. This is corrected in this PR.

Testing Instructions

I did this PR based on code review and debugging (looking at the values of he params during runtime).
To test you can do the same review/debugging: If the params property is already a Registry object it will fail to create one and it doesn't make sense to create one for obvious reasons.

To test in real you need to set some parameters at item level and check that the item params take precedence over menu/component params if needed.

  • Contact Item in category, featured and single contact view
  • Newsfeed Item in category and single newsfeed view
  • In the search view for the traditional search (com_search) you need to check the behavior of the page title parameter in the menu item. If none is specified it should fall back to the default language string, if one is specified it has to take the specified one.
  • Last change is in the template override feature, but I'm not 100% sure how to test it. Adding ?template=beez3 to the URL brings you to the code I changed, however I'm not sure which params are used there since no template style is specified. I guess it will just use default values but not sure.
    The code itself is a no brainer since a few lines above the params are already converted to Registry, so this can be reviewed easily.

Documentation Changes Required

None

avatar Bakual Bakual - open - 26 Oct 2016
avatar Bakual Bakual - change - 26 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 26 Oct 2016
Category Front End Components Libraries
avatar Bakual Bakual - change - 26 Oct 2016
Labels Added: ?
Removed: ?
avatar Bakual Bakual - change - 26 Oct 2016
Milestone Added:
avatar Bakual Bakual - change - 26 Oct 2016
Labels Added: ?
avatar laoneo
laoneo - comment - 8 Dec 2016

Branch has a conflict, can you please fix it that I can test.

avatar Bakual Bakual - change - 8 Dec 2016
The description was changed
avatar joomla-cms-bot joomla-cms-bot - change - 8 Dec 2016
Category Front End Components Libraries Front End com_contact com_newsfeeds Components
avatar Bakual
Bakual - comment - 8 Dec 2016

Rebased

avatar laoneo
laoneo - comment - 8 Dec 2016

A bit hard to set up a test environment. Can you tell us how we can reproduce the issue.

avatar Bakual
Bakual - comment - 8 Dec 2016

I don't remember if there was an issue in those cases.
It's just that $item->params is already a Registry object and doesn't need to be created again with new Registry($item->params). Trying to do that actually results in an error and the merging doesn't work correctly. The merge will end up with a Registry object within a Registry object instead of merging it.
Easy to see when you debug it, but I haven't looked where exactly those come from and how the issue could be made viewable.

avatar Bakual
Bakual - comment - 8 Dec 2016

Should be fine now.

avatar dgt41
dgt41 - comment - 18 Dec 2016

I have tested this item successfully on 0236a98


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

avatar dgt41 dgt41 - test_item - 18 Dec 2016 - Tested successfully
avatar alikon
alikon - comment - 19 Dec 2016

I have tested this item successfully on 0236a98


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

avatar alikon alikon - test_item - 19 Dec 2016 - Tested successfully
avatar jeckodevelopment jeckodevelopment - change - 19 Dec 2016
The description was changed
Status Pending Ready to Commit
avatar jeckodevelopment jeckodevelopment - edited - 19 Dec 2016
avatar jeckodevelopment
jeckodevelopment - comment - 19 Dec 2016

RTC


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

avatar rdeutz rdeutz - change - 19 Dec 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-12-19 14:49:47
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 19 Dec 2016
avatar rdeutz rdeutz - merge - 19 Dec 2016
avatar rdeutz rdeutz - reference | ea4f6c6 - 19 Dec 16
avatar rdeutz rdeutz - merge - 19 Dec 2016
avatar rdeutz rdeutz - close - 19 Dec 2016
avatar Bakual Bakual - head_ref_deleted - 19 Dec 2016
avatar cpfeifer cpfeifer - reference | fb3e6ba - 22 Dec 16

Add a Comment

Login with GitHub to post a comment