[BUGFIX] Fix select with multiple enabled not being saved correctly 40/50140/2
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:42:07 +0000 (20:42 +0200)
commit7559498647b0e80f8c8f7a92438be770b8aea487
tree87e0e0db93f140730476764bc10b2b56ca0c5fd2
parent4e62de806649b9fa7a2953b30e090ab843ce6bb2
[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/50140
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