[BUGFIX] impexp: Wrong FAL references after import 68/55368/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Mon, 15 Jan 2018 14:54:57 +0000 (15:54 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 15 Jan 2018 19:51:10 +0000 (20:51 +0100)
commit587e83cc36a7eb7e9224e72066847869536ec2b7
tree567790b71602353f3492fccaacb6c389197591a2
parent6f4ab27577690b003498818c77ae2ac2d4f34e46
[BUGFIX] impexp: Wrong FAL references after import

Fix a case during ext:impexp FAL uid mapping where
sys_file_reference end up pointing to wrong sys_file
records in case new sys_file uids also already exist
in import file, due to multiple mappings.
Power the patch with a functional test - it fails
without the change in Import.php and is ok with the
change.
See the test method comments for more details
on what exactly is checked here.

Change-Id: I472cad2652e8d6f5d30e4ebc68ff1ae93de71ea1
Resolves: #67188
Releases: master, 8.7, 7.6
Reviewed-on: https://review.typo3.org/55368
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/impexp/Classes/Import.php