Skip to content
This repository has been archived by the owner on Jun 14, 2023. It is now read-only.

config.sys_language_overlay = hideNonTranslated is ignored #22

Open
tomasnorre opened this issue Sep 4, 2015 · 1 comment
Open

config.sys_language_overlay = hideNonTranslated is ignored #22

tomasnorre opened this issue Sep 4, 2015 · 1 comment

Comments

@tomasnorre
Copy link
Contributor

The behaviour is same with sys_language_overlay = 1 and
sys_language_overlay = hideNonTranslated.
The the non-translated elements of the default language are rendered.

Migrated from:
https://forge.typo3.org/issues/27090

-- Comment from forge:
I can confirm the problem. Translation falls back into default language, even if it's not in fallback order.

The changes in patch seem to work, but the line numbers differ from line numbers in (latest) version 0.8.4.

-- Comment from forge:
I found another workaround (see attached patch):

if ($row['uid'] == 0 && $row['pid'] == 0) {
$row = NULL;
}
added at the beginning of getRecordOverlay_postProcess will return early and does not cause problems with getRecordOverlay in t3lib_page since $row has to be an array with uid and pid keys after the getRecordOverlay_preProcess invocation.

@tomasnorre
Copy link
Contributor Author

Patches can be found here:
https://gist.github.com/tomasnorre/83dc81ed87216157d026

@tomasnorre tomasnorre added the bug label Sep 4, 2015
@tomasnorre tomasnorre added this to the 1.1.0 - Cleanup milestone Sep 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant