PR-6.1-dev Pending

User tests: Successful: Unsuccessful:

avatar HLeithner
HLeithner
1 Sep 2025

If you create an subform for multiple rows and allow to order and save this subform as json, it is not possible to reorder entries.

There might be an alternative to fix this issue in the javascript. But that would not fix the postprocessing issue of subform child fields.

Summary of Changes

This PR changes the associative array result to an indexed array by walking recursive thru all subforms.

This behavior can be activated by adding the indexed="true"? attribute to the subform xml definition.
We use an extra attribute to b/c reasons, but would also expect that there should no problems changing this behavior for all subforms without a switch.

We can think about deprecating the old behavior.

Testing Instructions

  • create a component with a subform in the form xml
  • the subform needs to be multiple and saved as json in the table
  • try to reorder rows

Actual result BEFORE applying this Pull Request

  • does not change the order after save

Expected result AFTER applying this Pull Request

  • changes the order on save

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar HLeithner HLeithner - open - 1 Sep 2025
avatar HLeithner HLeithner - change - 1 Sep 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2025
Category Repository Administration Language & Strings Installation Libraries NPM Change
avatar HLeithner HLeithner - change - 1 Sep 2025
Labels Added: Language Change NPM Resource Changed PR-6.1-dev
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2025
Category Repository Administration Language & Strings Installation Libraries NPM Change Libraries
avatar HLeithner HLeithner - change - 1 Sep 2025
Labels Removed: Language Change NPM Resource Changed

Add a Comment

Login with GitHub to post a comment