Review 13.4 Merged

89481[BUGFIX] Fix local configuration GUI with numerical map keys

Garvin Hicking CR +2 V +2 Easy +11 −4 updated 05/20/25, 13:44

Commit message

The GUI-managed map/list local configuration handling introduced
with #106553 throws an exception when entering a numerical map
array key.

The "map" type is not yet utilized in the current TYPO3 core
DefaultConfiguration, thus this bug has no impact yet.

This patch adjusts the htmlentities() call to cast
numbers to a string to make numerical keys possible.

Note that later on, numerical array keys are actually
persisted with their proper numerical array key, not a string.

Also note that the GUI submits map keys sorted with
integer numbers first, and later handling also sorts
the whole array by their key.

To prevent the GUI from reporting multiple "Write configuration"
submits as having changes, the comparison of the old and
new values no longer report changes in sorting as a difference.
Only when values or keys change, the GUI reports it as a change.

Review

  • Code review CR +2 Done
    • Garvin Hicking +2
  • Verified V +2 Done
    • Garvin Hicking +2
    • core-ci +1 CI

Issues 2

Files 2

Review log 34

  1. Garvin Hicking commented on patch set 1 05/20/25, 13:34

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 05/20/25, 13:42 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/79241

  3. Garvin Hicking voted on patch set 1 CR +2 V +2 05/20/25, 13:44

  4. Garvin Hicking merged patch set 2 05/20/25, 13:44