[BUGFIX] Respect TSConfig in Language Diff View 52/44252/3
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Fri, 23 Oct 2015 17:33:59 +0000 (19:33 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 25 Oct 2015 11:21:56 +0000 (12:21 +0100)
In order to get the configured value from TSConfig to show in the
DiffView we need to provide the pid of the defaultLanguageRecord
to FormEngine.

Resolves: #38820
Releases: master
Change-Id: If486e7c9dd7b6b3fc8d96a1535f343a83d532ed4
Reviewed-on: https://review.typo3.org/44252
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/backend/Classes/Form/Container/SingleFieldContainer.php

index 91dffcf..3f62a50 100644 (file)
@@ -320,9 +320,11 @@ class SingleFieldContainer extends AbstractContainer
                 $field,
                 $this->data['defaultLanguageRow'][$field],
                 0,
-                1,
+                true,
                 false,
-                $this->data['defaultLanguageRow']['uid']
+                $this->data['defaultLanguageRow']['uid'],
+                true,
+                $this->data['defaultLanguageRow']['pid']
             );
             $fieldConfig = $this->data['processedTca']['columns'][$field];
             // Don't show content if it's for IRRE child records: