#16455Content record disappear when inserting non-default language first
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></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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.