diff --git a/typo3/sysext/backend/Classes/Utility/BackendUtility.php b/typo3/sysext/backend/Classes/Utility/BackendUtility.php index d778e06..ed2db5d 100644 --- a/typo3/sysext/backend/Classes/Utility/BackendUtility.php +++ b/typo3/sysext/backend/Classes/Utility/BackendUtility.php @@ -2099,7 +2099,15 @@ class BackendUtility { if ($theColConf['internal_type'] === 'db') { $finalValues = array(); $relationTableName = $theColConf['allowed']; - $explodedValues = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $value, TRUE); + + if (!empty($theColConf['MM'])) { + /** @var $dbGroup \TYPO3\CMS\Core\Database\RelationHandler */ + $dbGroup = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler'); + $dbGroup->start($value, $theColConf['foreign_table'], $theColConf['MM'], $uid, $table, $theColConf); + $explodedValues = $dbGroup->tableArray[$theColConf['foreign_table']]; + } else { + $explodedValues = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $value, TRUE); + } foreach ($explodedValues as $explodedValue) {