RTC PR-6.2-dev Pending

User tests: Successful: Unsuccessful:

avatar shamsbd71
shamsbd71
31 Oct 2026

Pull Request resolves #48704 .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

administrator/components/com_config/tmpl/component/default.php builds $dataShowOn for a fieldset that has a showon attribute and loads the showon script, but the attribute was never printed on the <fieldset> element (the output was lost when Global Configuration moved to custom-element tabs in 4.0). This PR outputs it on both fieldset tags, so showon on a fieldset in a component's config.xml works again.

Testing Instructions

  1. Edit administrator/components/com_users/config.xml and, inside the integration fieldset, add a second child fieldset after integration_customfields:
<fieldset name="integration_test" label="Test showon fieldset" showon="custom_fields_enable:1">
	<field name="test_text" type="text" label="Test text" />
</fieldset>

The added fieldset is a dummy for testing only. "Edit Custom Fields" is used just as an existing Yes/No field for its showon to depend on; its own behaviour is not changed by this PR.

  1. Go to Users > Manage > Options > Integration tab.
  2. Toggle "Edit Custom Fields" between Yes and No.
  3. Apply the PR and repeat steps 2-3.

Actual result BEFORE applying this Pull Request

The "Test showon fieldset" fieldset is always shown. The <fieldset id="fieldset-integration_test"> element has no data-showon attribute.

before-no

Expected result AFTER applying this Pull Request

The "Test showon fieldset" fieldset (including its legend) is hidden when "Edit Custom Fields" is No and shown when it is Yes. Fieldsets without showon are unchanged.

after-no after-yes

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Screenshots

avatar shamsbd71 shamsbd71 - open - 31 Oct 2026
avatar shamsbd71 shamsbd71 - change - 31 Oct 2026
Status New ⇒ Pending
avatar joomla-cms-bot joomla-cms-bot - change - 31 Oct 2026
Category ⇒ Administration com_config
avatar shamsbd71 shamsbd71 - change - 31 Oct 2026
Labels Added: PR-6.2-dev
avatar brianteeman
brianteeman - comment - 31 Oct 2026

I think you have misunderstood the purpose of the option "edit custom fields". It does not control the display of custom fields. It controls whether the menu options for fields and field groups are displayed and therefore if new fields can be added etc

avatar brianteeman
brianteeman - comment - 31 Oct 2026

I think you have misunderstood the purpose of the option "edit custom fields". It does not control the display of custom fields. It controls whether the menu options for fields and field groups are displayed and therefore if new fields can be added etc

Or I have misunderstood you

avatar shamsbd71 shamsbd71 - change - 31 Oct 2026
The description was changed
avatar shamsbd71 shamsbd71 - edited - 31 Oct 2026
avatar shamsbd71
shamsbd71 - comment - 31 Oct 2026

Sorry, my testing instructions weren't clear. The PR doesn't change anything about custom fields or what "Edit Custom Fields" does.

No, the PR doesn't change anything about custom fields. I just used that switch in the test because it's an existing Yes/No field on the same tab. The test fieldset is a dummy, any field would work.

The actual bug is that showon on a fieldset in a component's config.xml doesn't work, because the data-showon attribute is never printed. Without the PR the dummy fieldset is always shown, with the PR it hides/shows with the switch.

avatar brianteeman
brianteeman - comment - 31 Oct 2026

Thanks for clarifying. I had indeed misunderstood

avatar tecpromotion tecpromotion - change - 31 Oct 2026
Title
…
[AI] [6.2] Output showon attribute on com_config fieldsets
[6.2] [AI] Output showon attribute on com_config fieldsets
avatar tecpromotion tecpromotion - edited - 31 Oct 2026
avatar brianteeman brianteeman - test_item - 1 Nov 2026 - Tested successfully
avatar brianteeman
brianteeman - comment - 1 Nov 2026

I have tested this item ✅ successfully on 57d80bf


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

avatar brianteeman
brianteeman - comment - 1 Nov 2026

I have tested this item ✅ successfully on 57d80bf


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

avatar Ruud68 Ruud68 - test_item - 1 Nov 2026 - Tested successfully
avatar Ruud68
Ruud68 - comment - 1 Nov 2026

I have tested this item ✅ successfully on 57d80bf

Test okay since code changes already tested on #48704


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

avatar Ruud68
Ruud68 - comment - 1 Nov 2026

I have tested this item ✅ successfully on 57d80bf

Test okay since code changes already tested on #48704


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

avatar alikon alikon - change - 2 Nov 2026
Status Pending ⇒ Ready to Commit
avatar alikon
alikon - comment - 2 Nov 2026

RTC


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

avatar alikon
alikon - comment - 2 Nov 2026

RTC


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

avatar MacJoom MacJoom - change - 6 Nov 2026
Labels Added: RTC
avatar MacJoom MacJoom - change - 6 Nov 2026
Status Ready to Commit ⇒ Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 ⇒ 2026-11-06 17:08:57
Closed_By ⇒ MacJoom
avatar MacJoom MacJoom - close - 6 Nov 2026
avatar MacJoom MacJoom - merge - 6 Nov 2026
avatar MacJoom
MacJoom - comment - 6 Nov 2026

Thank you!

Add a Comment

Login with GitHub to post a comment