[BUGFIX] Localize tt_content_defValues in new content element wizard 51/52051/2
authorEric Chavaillaz <eric.chavaillaz@gmail.com>
Mon, 30 Jan 2017 13:09:33 +0000 (14:09 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 15 Mar 2017 10:49:34 +0000 (11:49 +0100)
Resolves: #79551
Releases: master, 7.6
Change-Id: I76bf3996b3f76b18f9ff9cc95b70b2e41bbc4143
Reviewed-on: https://review.typo3.org/52051
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php

index a3ce592..cb4e441 100644 (file)
@@ -548,7 +548,7 @@ class NewContentElementController extends AbstractModule
                             break;
                         } else {
                             // Add the parameter:
-                            $wizardItems[$key]['params'] .= '&defVals[tt_content][' . $fN . ']=' . rawurlencode($fV);
+                            $wizardItems[$key]['params'] .= '&defVals[tt_content][' . $fN . ']=' . rawurlencode($this->getLanguageService()->sL($fV));
                             $tmp = explode('_', $key);
                             $headersUsed[$tmp[0]] = $tmp[0];
                         }