Skip to content
Snippets Groups Projects
Commit 7629b20a authored by Oliver Bartsch's avatar Oliver Bartsch Committed by Benjamin Franzke
Browse files

[BUGFIX] Reset array keys after filtering available languages

To prevent PHP from encoding the numeric keys
of the available languages as string, which would
lead to JavaScript errors, `array_values` is now
applied to the filtered list of languages.

This resets the keys and therefore ensures a
continuous numeric sequence starting from 0.

Reference: https://www.php.net/manual/en/function.json-encode.php#refsect1-function.json-encode-notes

Resolves: #102911
Releases: main, 12.4
Change-Id: Ieca55dd815d1389f44823b252df8da75196d0fdc
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/82734


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenjamin Franzke <ben@bnf.dev>
Reviewed-by: default avatarBenjamin Franzke <ben@bnf.dev>
parent 0cb86f31
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment