Project

General

Profile

Bug #22555 » 0014263_translate_draft_v2.diff

Administrator Admin, 2010-05-26 14:15

View differences:

typo3_src-4.2.12/typo3/alt_doc.php 2010-05-26 14:07:30.000000000 +0200
$fetchFields = 'uid,'.$languageField.','.$transOrigPointerField;
// get record in current language
$rowCurrent = t3lib_befunc::getRecord($table, $uid, $fetchFields);
$rowCurrent = t3lib_befunc::getRecord($table, $uid, '*');
$currentLanguage = $rowCurrent[$languageField];
if ($currentLanguage>-1) { // Disabled for records with [all] language!
// get record in default language if needed
if ($currentLanguage) {
// get record in default language
$rowsByLang[0] = t3lib_befunc::getRecord($table, $rowCurrent[$transOrigPointerField], $fetchFields);
} elseif ($rowCurrent['t3ver_oid'] && !$rowCurrent[$transOrigPointerField]){
// get original record
$rowsByLang[0] = t3lib_befunc::getRecord($table, $rowCurrent['t3ver_oid'], $fetchFields);
} else {
// use current record
$rowsByLang[0] = $rowCurrent;
}
(2-2/2)