[BUGFIX] Fix import for fields of type input with link wizard 71/30171/6
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Fri, 16 May 2014 10:41:06 +0000 (12:41 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 29 Jan 2015 19:37:18 +0000 (20:37 +0100)
commit09b82e3d9d8c5b3c2e55302485b1f537b5422831
tree448f54e31ffd17b4b796d4cd5270e69e120b2792
parentb981d41d4f1b655de0006fc076c03273000a9f0e
[BUGFIX] Fix import for fields of type input with link wizard

Fields of type import and link wizard could also contain a path to
a local file in addition to a direct file reference (file:42). The
refindex correctly analyse this relation and saves a db relation to
the uid of the sys_file records.

On imports this is not correct resolved back, but a value
"sys_file_{uid}" is saved.

In addition this patch fixes also a redundant inclusion of files
stored in fileadmin for such a field type, because of having a
sys_file db relation and a softreference.

Resolves: #58843
Releases: master, 6.2
Change-Id: I32bb0e82212295f71c22dfa4935d7d940eb3c95e
Reviewed-on: http://review.typo3.org/30171
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
12 files changed:
typo3/sysext/impexp/Classes/ImportExport.php
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/ExportTest.php
typo3/sysext/impexp/Tests/Functional/Export/PagesAndTtContent/Fixtures/Database/sys_file.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content.xml
typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/template_extension/Resources/Public/Templates/Empty.html [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/template_extension/ext_emconf.php [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/Extensions/template_extension/ext_icon.gif [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent.xml
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/ImportInEmptyDatabaseTest.php
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/DataSet/Assertion/importPagesAndRelatedTtContent.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/DataSet/Assertion/importSimplePagesAndRelatedTtContent.csv [deleted file]
typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/ImportInEmptyDatabaseTest.php