[BUGFIX] Avoid getTCAtypeValue-calls in DataHandler->fillInFieldArray
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / DataHandling / DataHandler.php
index b5c9a69..a62ef08 100644 (file)
@@ -1446,7 +1446,7 @@ class DataHandler {
                }
                // Checking for RTE-transformations of fields:
                $types_fieldConfig = BackendUtility::getTCAtypes($table, $currentRecord);
-               $theTypeString = BackendUtility::getTCAtypeValue($table, $currentRecord);
+               $theTypeString = NULL;
                if (is_array($types_fieldConfig)) {
                        foreach ($types_fieldConfig as $vconf) {
                                $eFile = NULL;
@@ -1466,6 +1466,9 @@ class DataHandler {
                                                // Look for transformation flag:
                                                switch ((string) $incomingFieldArray[('_TRANSFORM_' . $vconf['field'])]) {
                                                        case 'RTE':
+                                                               if ($theTypeString === NULL) {
+                                                                       $theTypeString = BackendUtility::getTCAtypeValue($table, $currentRecord);
+                                                               }
                                                                $RTEsetup = $this->BE_USER->getTSConfig('RTE', BackendUtility::getPagesTSconfig($tscPID));
                                                                $thisConfig = BackendUtility::RTEsetup($RTEsetup['properties'], $table, $vconf['field'], $theTypeString);
                                                                // Set alternative relative path for RTE images/links: