[BUGFIX] Fix select with multiple enabled not being saved correctly 81/49981/6
authorJohannes Schlier <johannes.schlier@b13.de>
Tue, 20 Sep 2016 15:21:50 +0000 (17:21 +0200)
committerBenni Mack <benni@typo3.org>
Sat, 8 Oct 2016 18:41:46 +0000 (20:41 +0200)
commit12b9bfcf0159f05380e83e194bc8cda546df84a5
tree091950672661e2160a3765e0c474251fedca5925
parent1c38554b89d5de0840b13d050f1e4522d1dc624b
[BUGFIX] Fix select with multiple enabled not being saved correctly

If the 'multiple' field in the fieldConfig is set the
$newDatabaseValueArray is returned as is, with duplicate entries. If this
is not the case $newDatabaseValueArray is returned as before, being
modified with the array_unique function.

Resolves: #76918
Releases: master, 7.6
Change-Id: Id8ddac95162a929aeb1b5d7bae33a460317b46cb
Reviewed-on: https://review.typo3.org/49981
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Karol Lamparski <klamparski@gmail.com>
Tested-by: Karol Lamparski <klamparski@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php