[BUGFIX] Fix select with multiple enabled not being saved correctly
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / FormDataProvider / AbstractItemProvider.php
index b98e537..e35baba 100644 (file)
@@ -1163,6 +1163,9 @@ abstract class AbstractItemProvider
             $newDatabaseValueArray = array_merge($newDatabaseValueArray, $relationHandler->getValueArray());
         }
 
+        if ($fieldConfig['config']['multiple']) {
+            return $newDatabaseValueArray;
+        }
         return array_unique($newDatabaseValueArray);
     }