Issue Bug Closed

#100776TsConfig tt_content_defValues translation

Benni Achenbach 04/28/23, 09:42 updated 07/09/24, 12:56

Description

Hi,

i ran into a problem with Typo3 v12 where the translation in the tsconfig in tt_content_defValues is returned as is.
It worked perfectly in Typo3 v11.5 with the following line in typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php

$wizardItems[$key]['params'] .= '&defVals[tt_content][' . $fN . ']=' . rawurlencode($this->getLanguageService()->sL($fV));

it was removed in 12.4 but i fixed it with

$wizardItems[$key]['tt_content_defValues'][$fieldName] = rawurlencode($this->getLanguageService()->sL($value));

in line 330 in vendor/typo3/cms-backend/Classes/Controller/ContentElement/NewContentElementController.php

maybe someone could take a look at that.
Thanks.

Reviews 1