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 #1

Updated by Sebastian Kurfuerst over 18 years ago

checking that with ingmar

Actions #2

Updated by Sebastian Kurfuerst over 18 years ago

The dbList_lang.patch is the 2nd patch, which needs to be inserted after Ingmars patch.

Actions #3

Updated by Sebastian Kurfuerst over 18 years ago

Hi,
could you upload your part of the patch, please?

Thanks,
Sebastian

Actions #4

Updated by Stefan Galinski almost 13 years ago

  • Status changed from New to Closed
  • Target version deleted (0)
  • PHP Version deleted (4)

Can not be reproduced anymore with at least content elements that should have the same behaviour as news in the list module.

Actions

Also available in: Atom PDF