Project

General

Profile

Bug #21613 ยป tcemaincopy.patch

Administrator Admin, 2009-11-18 23:14

View differences:

t3lib/class.t3lib_tcemain.php (Arbeitskopie)
if ($table == 'pages') return;
t3lib_div::loadTCA($table);
$l10nRecords = t3lib_BEfunc::getRecordsByField($table, $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'], $uid);
if (is_array($l10nRecords)) {
foreach ($l10nRecords as $record) {
$this->copyRecord($table, $record['uid'], $destPid, $first, $overrideValues, $excludeFields, $record[$GLOBALS['TCA'][$table]['ctrl']['languageField']]);
if (array_key_exists('languageField', $GLOBALS['TCA'][$table]['ctrl']) && array_key_exists('transOrigPointerField', $GLOBALS['TCA'][$table]['ctrl'])) {
$l10nRecords = t3lib_BEfunc::getRecordsByField($table, $GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'], $uid);
if (is_array($l10nRecords)) {
foreach ($l10nRecords as $record) {
$this->copyRecord($table, $record['uid'], $destPid, $first, $overrideValues, $excludeFields, $record[$GLOBALS['TCA'][$table]['ctrl']['languageField']]);
}
}
}
}
    (1-1/1)