Project

General

Profile

Bug #22555 » 0014263_translate_draft.diff

Administrator Admin, 2010-05-05 12:08

View differences:

typo3_src-4.2.12/typo3/alt_doc.php 2010-05-05 12:02:45.000000000 +0200
$languageField = $TCA[$table]['ctrl']['languageField'];
$transOrigPointerField = $TCA[$table]['ctrl']['transOrigPointerField'];
$origUid = $TCA[$table]['ctrl']['origUid'];
// table editable and activated for languages?
if ($GLOBALS['BE_USER']->check('tables_modify',$table) && $languageField && $transOrigPointerField && !$TCA[$table]['ctrl']['transOrigPointerTable']) {
......
if (is_array($langRows) && count($langRows)>1) {
$rowsByLang = array();
$fetchFields = 'uid,'.$languageField.','.$transOrigPointerField;
$fetchFields = 'uid,'.$languageField.','.$transOrigPointerField.','.$origUid;
// get record in current language
$rowCurrent = t3lib_befunc::getRecord($table, $uid, $fetchFields);
$currentLanguage = $rowCurrent[$languageField];
if($rowCurrent[$origUid] && !$rowCurrent[$transOrigPointerField]) $rowCurrent=t3lib_befunc::getRecord($table, $rowCurrent[$origUid], $fetchFields);
if ($currentLanguage>-1) { // Disabled for records with [all] language!
// get record in default language if needed
(1-1/2)