? ? ? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
10 Jan 2017

Pull Request for Issue #13540.

Summary of Changes

The method JFormHelper::parseShowOnConditions was missing the field group.
I have added that group as an argument to the method.
I also changed the argument order so $showOn is first. $formControl and $group come afterwards and are optional (since the code works without them).

Testing Instructions

Test showon behaviour in the various places. Some examples:

  • Component Options - com_content - "Show Title"
  • Module - Login - "Show Greeting"
  • Plugin - CAPTCHA - reCAPTCHA - "Version"
  • Template - Protostar - "Google Font for Headings"
  • Global Configuration - "Enable FTP"

Documentation Changes Required

None

avatar Bakual Bakual - open - 10 Jan 2017
avatar Bakual Bakual - change - 10 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Jan 2017
Category Administration com_config Layout Libraries
avatar andrepereiradasilva
andrepereiradasilva - comment - 10 Jan 2017

@Bakual you have conflicts.

anyway i was working on a alternative solution that also allows to extend showon across to multiple fieldsets/groups (using . if needed - ex: params.show_title:1).
If you are interrested see https://github.com/andrepereiradasilva/joomla-cms/pull/125/files

avatar Bakual Bakual - change - 10 Jan 2017
Labels Added: ? ?
avatar Bakual
Bakual - comment - 10 Jan 2017

you have conflicts.

No, it was just a codestyle issue (line to long). Fixed now.

anyway i was working on a alternative solution that also allows to extend showon across to multiple fieldsets/groups

Personally, I think if your showon is going to change something in another fieldset, then your UX needs to be improved ?

avatar bertmert
bertmert - comment - 12 Jan 2017

I have tested this item successfully on c0e5b5f

Tested like this:

  • Installed Staging of today.

  • Add New Menu Item "Add Article"

    • Menu Item Type: Articles > Create Article
    • Tab "Options": Set "Default Category": YES
    • Showon should show now the field "Choose a Category (enable_category)" but doesn't.
  • Applied this patch PR13549. All fine.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13549.
avatar bertmert
bertmert - comment - 12 Jan 2017

I have tested this item successfully on c0e5b5f

Tested like this:

  • Installed Staging of today.

  • Add New Menu Item "Add Article"

    • Menu Item Type: Articles > Create Article
    • Tab "Options": Set "Default Category": YES
    • Showon should show now the field "Choose a Category (enable_category)" but doesn't.
  • Applied this patch PR13549. All fine.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13549.
avatar bertmert bertmert - test_item - 12 Jan 2017 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 12 Jan 2017

I have tested this item successfully on c0e5b5f

Test OK


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

avatar anibalsanchez anibalsanchez - test_item - 12 Jan 2017 - Tested successfully
avatar jeckodevelopment jeckodevelopment - change - 13 Jan 2017
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 13 Jan 2017

RTC


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

avatar wilsonge wilsonge - change - 14 Jan 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-01-14 19:58:26
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 14 Jan 2017
avatar wilsonge wilsonge - merge - 14 Jan 2017

Add a Comment

Login with GitHub to post a comment