Commit dce3eade authored by c.essl's avatar c.essl Committed by Andreas Fernandez
Browse files

[BUGFIX] Do not show message "Allowed file extensions" for internal_type="db"

For IRRE relations with a "foreign_selector" relation set to a field of
type "group" and internal_type "db", the backend wrongly rendered the
message "Allowed file extensions". Instead "Allowed relations" is now
shown for table relations.

Resolves: #87747
Releases: master, 9.5, 8.7
Change-Id: I8a3b7686af14821ece0f727601c1a1bc0d5e1953
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60830

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: default avatarTobi Kretschmann <tobi@tobishome.de>
Reviewed-by: Frank Nägler's avatarFrank Naegler <frank.naegler@typo3.org>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent a36a248f
......@@ -565,7 +565,8 @@ class InlineControlContainer extends AbstractContainer
$item = '<div class="form-control-wrap t3js-inline-controls">' . $item . '</div>';
$allowedList = '';
$allowedLabel = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.allowedFileExtensions'));
$allowedLabelKey = ($mode === 'file') ? 'allowedFileExtensions' : 'allowedRelations';
$allowedLabel = htmlspecialchars($languageService->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:cm.' . $allowedLabelKey));
foreach ($allowedArray as $allowedItem) {
$allowedList .= '<span class="label label-success">' . strtoupper($allowedItem) . '</span> ';
}
......
......@@ -1035,6 +1035,9 @@ Do you want to refresh it now?</source>
<trans-unit id="cm.allowEmbedSources">
<source>Allowed media sources</source>
</trans-unit>
<trans-unit id="cm.allowedRelations">
<source>Allowed relations</source>
</trans-unit>
<trans-unit id="sortable.dragmove">
<source>Drag to move</source>
</trans-unit>
......
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