Bug #58951 » 58951-TYPO3_61.diff

Patch for TYPO3 6.1 - Xavier Perseguers, 2014-12-15 15:48

View differences:

typo3/sysext/backend/Classes/Utility/BackendUtility.php
2099 2099
				if ($theColConf['internal_type'] === 'db') {
2100 2100
					$finalValues = array();
2101 2101
					$relationTableName = $theColConf['allowed'];
2102
					$explodedValues = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $value, TRUE);
2102

  
2103
					if (!empty($theColConf['MM'])) {
2104
						/** @var $dbGroup \TYPO3\CMS\Core\Database\RelationHandler */
2105
						$dbGroup = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
2106
						$dbGroup->start($value, $theColConf['foreign_table'], $theColConf['MM'], $uid, $table, $theColConf);
2107
						$explodedValues = $dbGroup->tableArray[$theColConf['foreign_table']];
2108
					} else {
2109
						$explodedValues = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $value, TRUE);
2110
					}
2103 2111

  
2104 2112
					foreach ($explodedValues as $explodedValue) {
2105 2113

  
(1-1/2)