#14578DB record disappears when language != default and Localization-View enabled
Description
If the language of a content-element is different from the default language-uid (0), the element is not displayed in the Localization-view if it doesn’t have its “Transl. Orig.” set.
To reproduce:
Create a page, create its translation. Go to List-view, enable Localization-view. Create a database-record (e.g. a news-item). The item is displayed. Now, click the Edit-icon of the item and select another language for it. The item is now vanished. You can view it again by disabling Localization-view though.
Possible workaround:
In file typo3/class.db_list_extra.inc, line 321:
Changte the $addWhere to:
$addWhere.=’ AND (‘.$TCA[$table][‘ctrl’][‘languageField’].’<=0 OR
’.$TCA[$table][‘ctrl’][‘transOrigPointerField’].’=0)’;
This way, items with a different language, but without a ‘parent’ item are still shown. Problem with this solution is that the language isn’t shown behind those items (normally it states ‘Default’ or ‘All languages’).
(issue imported from #M845)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.