? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
13 Jun 2017

Pull Request for Issue #15473.

Summary of Changes

If the "Show Article Options" flag is set to no, then the custom fields are hidden as well. More infroamtion can be found in the issue #15473.
image

This pr changes the logic to only hide the "Options" tab when editing an article, the custom fields will still be displayed. This means that only fieldsets with the name basic are not displayed anymore with this pr, every other will still. So there is NO configuration setting to hide all additional fieldsets like before the patch.
Additionally the code got a bit of inline documentation as it starts to become more and more complex.

Testing Instructions

  • Create a custom field for articles
  • In the article options set the "Show Article Options" flag to NO
  • Edit an article

Expected result

Only the Options tab is hidden. The Fields tab is displayed.

Actual result

The Fields tab is hidden.

avatar laoneo laoneo - open - 13 Jun 2017
avatar laoneo laoneo - change - 13 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jun 2017
Category Layout
avatar laoneo laoneo - change - 13 Jun 2017
The description was changed
avatar laoneo laoneo - edited - 13 Jun 2017
avatar Bakual
Bakual - comment - 13 Jun 2017

Imho, that "showOptions" parameter is a strange one anyway and should be moved away from the JLayout. Instead we should set the hiddenFieldsets and/or ignoreFieldsets in the view based on the state of that parameter. That would make more sense to me and should actually simplify the code.

Since we change the behavior of this JLayout quite a bit already, it could be worth thinking a bit more about how we want it. Especially for J4.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 13 Jun 2017

I have tested this item successfully on 1b41c00


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 13 Jun 2017 - Tested successfully
avatar laoneo
laoneo - comment - 15 Jun 2017

@Bakual agree that this option is implemented in an awkward way. But how it is now it looks a bit more clear and only the options fieldsets are ignored.

avatar dennisbuis dennisbuis - test_item - 19 Jun 2017 - Tested successfully
avatar dennisbuis
dennisbuis - comment - 19 Jun 2017

I have tested this item successfully on 1b41c00

could reproduce issue on clean install.
Patch applied and custom fields displayed again.


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

avatar MarcelKooistra MarcelKooistra - test_item - 19 Jun 2017 - Tested successfully
avatar MarcelKooistra
MarcelKooistra - comment - 19 Jun 2017

I have tested this item successfully on 1b41c00

Created custom field
Reproduced error
Applied patch
Problem solved.


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

avatar wimstrik wimstrik - test_item - 19 Jun 2017 - Tested successfully
avatar wimstrik
wimstrik - comment - 19 Jun 2017

I have tested this item successfully on 1b41c00

I have tested this item succesfully


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jun 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 20 Jun 2017

RTC after two successful tests.

avatar rdeutz rdeutz - change - 21 Jun 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-21 18:30:06
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 21 Jun 2017
avatar rdeutz rdeutz - merge - 21 Jun 2017

Add a Comment

Login with GitHub to post a comment