Bug #58951 » 58951-TYPO3_62.diff

Patch for TYPO3 6.2 - Xavier Perseguers, 2014-12-15 16:10

View differences:

typo3/sysext/backend/Classes/Utility/BackendUtility.php
2147 2147
					if ($theColConf['internal_type'] === 'db') {
2148 2148
						$finalValues = array();
2149 2149
						$relationTableName = $theColConf['allowed'];
2150
						$explodedValues = GeneralUtility::trimExplode(',', $value, TRUE);
2150

  
2151
						if (!empty($theColConf['MM'])) {
2152
							/** @var $dbGroup \TYPO3\CMS\Core\Database\RelationHandler */
2153
							$dbGroup = GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
2154
							$dbGroup->start($value, $theColConf['foreign_table'], $theColConf['MM'], $uid, $table, $theColConf);
2155
							$explodedValues = $dbGroup->tableArray[$theColConf['foreign_table']];
2156
						} else {
2157
							$explodedValues = GeneralUtility::trimExplode(',', $value, TRUE);
2158
						}
2151 2159

  
2152 2160
						foreach ($explodedValues as $explodedValue) {
2153 2161

  
(2-2/2)