Project

General

Profile

Actions

Bug #16455

closed

Content record disappear when inserting non-default language first

Added by old_AndreU over 18 years ago. Updated almost 13 years ago.

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';
}
&lt;/verbatim&gt;
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

dbList_lang.patch (5.55 KB) dbList_lang.patch Administrator Admin, 2006-08-14 08:49
localization_list_view.patch (663 Bytes) localization_list_view.patch Administrator Admin, 2006-08-19 13:26
Actions

Also available in: Atom PDF