Commit 8db9bd87 authored by Josef Glatz's avatar Josef Glatz Committed by Susanne Moog
Browse files

[BUGFIX] OtherLanguageContent: show fallback language icon

Since the default language can be different from site
configuration to site configuration, "flags-multiple" icon
is used instead of the fallback "default-not-found" icon
when no default language is configured (e.g. when editing
a translated sys_file_metadata record in filelist module).

Resolves: #88909
Releases: master
Change-Id: Ie755cc06b43e4b735000ab598f14853773d58ced

Tested-by: Oliver Bartsch's avatarOliver Bartsch <>
Tested-by: default avatarTYPO3com <>
Tested-by: Susanne Moog's avatarSusanne Moog <>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <>
Reviewed-by: Susanne Moog's avatarSusanne Moog <>
parent a1e0405f
......@@ -68,8 +68,9 @@ class OtherLanguageContent extends AbstractNode
if ($defaultLanguageValue !== '') {
$iconIdentifier = $this->data['systemLanguageRows'][0]['flagIconIdentifier'] ?: 'flags-multiple';
$html[] = '<div class="t3-form-original-language">';
$html[] = $iconFactory->getIcon($this->data['systemLanguageRows'][0]['flagIconIdentifier'], Icon::SIZE_SMALL)->render();
$html[] = $iconFactory->getIcon($iconIdentifier, Icon::SIZE_SMALL)->render();
$html[] = $this->previewFieldValue($defaultLanguageValue);
$html[] = '</div>';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment