Project

General

Profile

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
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) {
(1-1/2)