Skip to content
Snippets Groups Projects
Commit 8507585e authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Properly handle TCA description overrides

Only apply TCA description override if it actually exists.

Resolves: #100062
Releases: main
Change-Id: I85a21419b9612e8e7738ea82094b262fc2ebacb3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78009


Tested-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Tested-by: default avatarNikita Hovratov <nikita.h@live.de>
Reviewed-by: default avatarSimon Schaufelberger <simonschaufi+typo3@gmail.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarNikita Hovratov <nikita.h@live.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
parent 4773bbd9
No related merge requests found
......@@ -58,10 +58,13 @@ class TcaColumnsProcessFieldDescriptions implements FormDataProviderInterface
if (!is_array($fieldTSconfig)) {
continue;
}
$result['processedTca']['columns'][$fieldName]['description'] = $languageService->translateLabel(
$pageTsConfigDescription = $languageService->translateLabel(
$fieldTSconfig['description.'] ?? [],
$fieldTSconfig['description'] ?? ''
);
if ($pageTsConfigDescription !== '') {
$result['processedTca']['columns'][$fieldName]['description'] = $pageTsConfigDescription;
}
}
return $result;
}
......
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