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
Updated by Sebastian Kurfuerst over 18 years ago
The dbList_lang.patch is the 2nd patch, which needs to be inserted after Ingmars patch.
Updated by Sebastian Kurfuerst over 18 years ago
Hi,
could you upload your part of the patch, please?
Thanks,
Sebastian
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