Actions
Bug #16455
closedContent record disappear when inserting non-default language first
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-08-10
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
- write a new news record in a language which isn't the default language * save it * look within web>list and (see) that the news record disappeared
To display this news, you have to change in the file "class.db_list_extra.inc" (row 319) the following statement in the "getTable()" Function:
<verbatim>
if ($this->localizationView && $l10nEnabled) {
$this->fieldArray[] = '_LOCALIZATION_';
$this->fieldArray[] = '_LOCALIZATION_b';
//old "where" clause with the query to the language
//$addWhere.=' AND '.$TCA[$table]['ctrl']['languageField'].'<=0';
//new clause with the query to the original language
$addWhere.=' AND '.$TCA[$table]['ctrl']['transOrigPointerField'].'=0';
}
</verbatim>
Which will display every news which has no "i18_parent" in the "tt_news" table.
This is just a quick fix to made the records editable - which is better than the current behaviour of disappearing. When deleting a default language record of a translated records this may go wrong.
(issue imported from #M4013)
Files
Actions