[BUGFIX] Fix import for fields of type input with link wizard 84/36384/2
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 20:10:44 +0000 (21:10 +0100)
commit576c4d33241d8402db6fbf1e3cef6bc4fb5fb548
treee5c40f484437b6202da02a855e756a482c3dccf4
parent739502085d85e5d79533171678c2df8215f0351a
[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.

Change-Id: I1399006b44f6a9365a92e42911cc3daaa8a81d89
Resolves: #58843
Releases: master, 6.2
Reviewed-on: http://review.typo3.org/36384
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