[BUGFIX] Fix wrong enforcement of pid 0 for rootLevel = -1 in impexp 66/31066/6
authorMarc Bastian Heinrichs <typo3@mbh-software.de>
Mon, 23 Jun 2014 11:13:52 +0000 (13:13 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Sat, 14 Mar 2015 00:20:27 +0000 (01:20 +0100)
commit0e7acd5a4fa4c571a5e8970d6c55f55c5522fc12
treebb9574926e353de2d1e764673027e2218c00cc13
parent94832251c504585c8b34785424903759cb2d6d86
[BUGFIX] Fix wrong enforcement of pid 0 for rootLevel = -1 in impexp

The importer had no support for setting TCA ctrl rootLevel = -1 and
forces the import to pid 0, when a normal page id is also allowed.

Resolves: #59616
Releases: master, 6.2
Change-Id: I224a6d0065c2031636fce494924fc892541ab350
Reviewed-on: http://review.typo3.org/31066
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/impexp/Classes/ImportExport.php
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/DataSet/Assertion/importGroupFileAndFileReferenceItemWithRootLevelAndPagesAllowed.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/DataSet/Assertion/importGroupFileAndFileReferenceItemWithRootLevelNotAllowed.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/DataSet/Assertion/importGroupFileAndFileReferenceItemWithRootLevelOnlyAllowed.csv [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/ImportExportXml/impexp-group-file-and-file_reference-item-on-pid-zero.xml [new file with mode: 0644]
typo3/sysext/impexp/Tests/Functional/Import/GroupFileAndFileReferenceItem/ImportInEmptyDatabaseTest.php