[BUGFIX] Preserve order of select items in FormEngine 56/62856/4
authorMarkus Klein <markus.klein@typo3.org>
Sun, 12 Jan 2020 18:02:51 +0000 (19:02 +0100)
committerDaniel Goerz <daniel.goerz@posteo.de>
Mon, 13 Jan 2020 11:06:58 +0000 (12:06 +0100)
commitba5b33b5b647283efaf08459f1e0656ca83d3434
tree8146bcbf4ea7212948ef0fab8b306b02be76cf1c
parente03636ea8f6cb2fabea6d56c7be5f7e1859c84e7
[BUGFIX] Preserve order of select items in FormEngine

If a select field is comprised of static and dynamic
(database relation) values the order of items stored in
database is preserved when showing the select field.

Resolves: #87672
Releases: master, 9.5, 8.7
Change-Id: I95ed9d523f68eb106c22bbbcd14e60a17a2c0293
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/62856
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Felix P. <f.pachowsky@neusta.de>
Tested-by: Henning Liebe <h.liebe@neusta.de>
Tested-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com>
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Susanne Moog <look@susi.dev>
Reviewed-by: Felix P. <f.pachowsky@neusta.de>
Reviewed-by: Henning Liebe <h.liebe@neusta.de>
Reviewed-by: Sascha Rademacher <sascha.rademacher+typo3@gmail.com>
Reviewed-by: Tobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php