Language Change bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar chmst
chmst
26 Jul 2026

Pull Request resolves #48118 .

  • 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

If a subform is empty (has no fields) then display an information.

Testing Instructions

Make a textfield.
Make a subform and add this field.
Then trash the textfield.

Actual result BEFORE applying this Pull Request

A division by zero occurs as described in the issue #48118, if the table layout is chosen

Expected result AFTER applying this Pull Request

Information is displayed:

grafik

Remark: division by zero occurs only for the table layout.
But also for other subform field it is an improvement.

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

avatar chmst chmst - open - 26 Jul 2026
avatar chmst chmst - change - 26 Jul 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Jul 2026
Category Administration Language & Strings Layout
avatar chmst chmst - change - 26 Jul 2026
The description was changed
avatar chmst chmst - edited - 26 Jul 2026
avatar chmst chmst - change - 26 Jul 2026
Labels Added: Language Change PR-5.4-dev
avatar chmst
chmst - comment - 26 Jul 2026

From a11y point of view, the solution is not corret.
The check for empty subform must be earlier.

avatar chmst
chmst - comment - 26 Jul 2026

From a11y point of view, the solution is not correct. There is a fom-control with a label, but no input field.

The check for empty subform must be earlier.

avatar joomla-cms-bot joomla-cms-bot - change - 26 Jul 2026
Category Administration Language & Strings Layout Administration Language & Strings Layout Libraries
avatar chmst chmst - change - 26 Jul 2026
The description was changed
avatar chmst chmst - edited - 26 Jul 2026
avatar chmst
chmst - comment - 26 Jul 2026

If a subform is empty, no control-group is rendered, only an information alert.
This avoids a label which does not belong to an input.

avatar chmst
chmst - comment - 26 Jul 2026

If a subform is empty, no control-group is rendered, only an information alert. Supportedd by co-pilot.
This avoids a label which does not belong to an input.

avatar chmst chmst - change - 26 Jul 2026
Title
[5.4] Fix empty subforms, division by zero
[5.4] [AI] Fix empty subforms, division by zero
avatar chmst chmst - edited - 26 Jul 2026
avatar Fedik
Fedik - comment - 27 Jul 2026

The changes looks realy strange tbh :)

avatar Fedik
Fedik - comment - 27 Jul 2026

The changes looks realy strange tbh :)

Addittionaly it could be a "visual b.c. break" for existing sites.
I would just display nothing.

avatar Fedik
Fedik - comment - 27 Jul 2026

Or revert the PR that introduces the error

avatar chmst
chmst - comment - 29 Jul 2026

Not worth discussions.
It is an edge case an should not occur at all.
Minimal solution: #48163

avatar chmst chmst - close - 29 Jul 2026
avatar chmst
chmst - comment - 29 Jul 2026

Maintainers decided to fix the bug with a small hotfix in 5.4 and resolve the a11y issue in 6.2.

avatar chmst chmst - change - 29 Jul 2026
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2026-07-29 18:00:32
Closed_By chmst
Labels Added: bug

Add a Comment

Login with GitHub to post a comment