We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a9f0de commit 48cc10dCopy full SHA for 48cc10d
Classes/Utility/TypoScriptUtility.php
@@ -25,8 +25,10 @@ public static function overwriteValueFromTypoScript(
25
?array $conf = [],
26
string $key = ''
27
): string {
28
- if (ObjectUtility::getContentObject()->cObjGetSingle($conf[$key]??'', $conf[$key . '.']??[])) {
29
- $string = ObjectUtility::getContentObject()->cObjGetSingle($conf[$key], $conf[$key . '.']);
+ $contentObject = ObjectUtility::getContentObject();
+ $contentObject->setCurrentVal($string);
30
+ if ($contentObject->cObjGetSingle($conf[$key]??'', $conf[$key . '.']??[])) {
31
+ $string = $contentObject->cObjGetSingle($conf[$key], $conf[$key . '.']);
32
}
33
return $string;
34
0 commit comments