Follow-up to #12781: Bug: tceforms type do not work if the type field has l10n_mode...
authorSteffen Kamper <info@sk-typo3.de>
Wed, 13 Jan 2010 12:07:12 +0000 (12:07 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Wed, 13 Jan 2010 12:07:12 +0000 (12:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6753 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tceforms.php

index eadcb44..c6c7772 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-13  Steffen Kamper  <info@sk-typo3.de>
+
+       * Follow-up to #12781: Bug: tceforms type do not work if the type field has l10n_mode == exclude (thanks to Fabrizio Branca)
+
 2010-01-11  Benjamin Mack  <benni@typo3.org>
 
        * Fixed bug #13092: Massuploader button is too small (Thanks to Steffen Gebert)
index 3467a35..c341f5f 100644 (file)
@@ -3049,12 +3049,7 @@ class t3lib_TCEforms     {
                if ($TCA[$table]['ctrl']['type'])       {
                        $typeFieldName = $TCA[$table]['ctrl']['type'];
                        $typeFieldConfig = $TCA[$table]['columns'][$typeFieldName];
-                       if (isset($typeFieldConfig['l10n_mode']) && $typeFieldConfig['l10n_mode'] == 'exclude') {
-                                       // retrieve the typeNum from the original records's type field
-                               $typeNum = $this->defaultLanguageData[$table . ':' . $row['uid']][$typeFieldName];
-                       } else {
-                               $typeNum = $row[$typeFieldName];        // Get value of the row from the record which contains the type value.
-                       }
+                       $typeNum = $this->getLanguageOverlayRawValue($table, $row, $typeFieldName, $typeFieldConfig);
                        if (!strcmp($typeNum,''))       $typeNum=0;                     // If that value is an empty string, set it to "0" (zero)
                } else {
                        $typeNum = 0;   // If no "type" field, then set to "0" (zero)