? Error

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
14 Dec 2013

This PR moves the call to save the state from the content.php bootstrap file to the form view where it belongs to. At the moment it is also useless to have it there because there is no apply function in the front where the state of the tabs needs to be save (check the comment below).
The tracker item http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=32953 is already opened.

As stated in the tracker item http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31372 in the comment from Jean-Marie Simonet
Note: for now it is useless on frontend, but it may one day if we introduce Save (Apply) and correct checkin.

avatar laoneo laoneo - open - 14 Dec 2013
avatar Bakual
Bakual - comment - 14 Dec 2013

Actually, it serves a purpose in frontend as well. It will keep the selected tab in the edit form through a page reload, or if you save and re-edit the article.

However the JHtml is definitively wrong in the initial file for com_content. It should be in the edit layout where it's actually needed and where it's able to be overriden. The same is true for in backend btw.

Can you update this PR or create a new one to just move the call to the edit layout instead?

avatar Bakual
Bakual - comment - 14 Dec 2013

On a sidenote. tabstate doesn't neeed mootools anymore, so the call JHtml::_('script', 'system/tabs-state.js', true, true); in the library is wrong and should be JHtml::_('script', 'system/tabs-state.js', false, true); instead.

avatar laoneo laoneo - change - 14 Dec 2013
Labels Added: ?
avatar laoneo
laoneo - comment - 14 Dec 2013

Moved the tabs save code to the form view, where it belongs to.

@Bakual this is already fixed for the next version 0247d9f#diff-f6f264d0b0673dc25ecc75e7746ec235

avatar Bakual
Bakual - comment - 14 Dec 2013

@laoneo ah thanks. Looks like I need to update my test server :smile:

avatar laoneo
laoneo - comment - 17 Dec 2013

Can you also test it and update the tracker item. Thanks.

avatar Bakual
Bakual - comment - 17 Dec 2013

Is there a tracker item for this? The one in the PR description is an old closed one. We need a new one for this.

avatar laoneo
laoneo - comment - 17 Dec 2013

Updated the description if this PR. Thanks for the hint.

avatar Bakual
Bakual - comment - 17 Dec 2013

Tested :+1:

avatar Bakual
Bakual - comment - 10 Apr 2014

This has been fixed with PR #3188. Closing.
Thanks anyway and sorry for not catching it :disappointed_relieved:

avatar Bakual Bakual - close - 10 Apr 2014
avatar Bakual Bakual - change - 10 Apr 2014
Status New Closed
Closed_Date 0000-00-00 00:00:00 2014-04-10 13:15:47
avatar Bakual Bakual - close - 10 Apr 2014

Add a Comment

Login with GitHub to post a comment