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
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61432

Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog's avatarSusanne Moog <look@susi.dev>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Susanne Moog's avatarSusanne Moog <look@susi.dev>
parent a1e0405f
......@@ -68,8 +68,9 @@ class OtherLanguageContent extends AbstractNode
$defaultLanguageRow['pid']
);
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