[BUGFIX] Wrong image reference handling during flexform copying 25/31425/2
authorAlexey Gafiulov <gafiulov@i-tribe.de>
Thu, 19 Jun 2014 16:12:42 +0000 (22:12 +0600)
committerMarkus Klein <klein.t3@mfc-linz.at>
Sun, 6 Jul 2014 23:32:06 +0000 (01:32 +0200)
References in flexforms having type=inline are not processed correctly
during copy.

Fix this by properly applying the reference field check.

Resolves: #59664
Releases: 6.3, 6.2, 6.1
Change-Id: I1abfa001ba420531ca0c59903e82b1509e0819e0
Reviewed-on: https://review.typo3.org/31425
Reviewed-by: Markus Klein
Tested-by: Markus Klein
typo3/sysext/core/Classes/DataHandling/DataHandler.php

index 33663fb..bf52978 100644 (file)
@@ -3483,7 +3483,7 @@ class DataHandler {
                // Process references and files, currently that means only the files, prepending absolute paths:
                $dataValue = $this->copyRecord_procFilesRefs($dsConf, $uid, $dataValue);
                // If references are set for this field, set flag so they can be corrected later (in ->remapListedDBRecords())
-               if ($this->isReferenceField($dsConf) && strlen($dataValue)) {
+               if (($this->isReferenceField($dsConf) || $this->getInlineFieldType($dsConf) !== FALSE) && strlen($dataValue)) {
                        $dataValue = $this->copyRecord_procBasedOnFieldType($table, $uid, $field, $dataValue, array(), $dsConf, $realDestPid);
                        $this->registerDBList[$table][$uid][$field] = 'FlexForm_reference';
                }