Bug #36031

T3D export of tt_content elements with IRRE relations between each other fails

Added by Jo Hasenau about 1 year ago. Updated 6 months ago.

Status:Under Review Start date:2012-04-14
Priority:Must have Due date:
Assignee:- % Done:

0%

Category:Backend API
Target version:4.5.15
TYPO3 Version:4.5 Complexity:
PHP Version:5.3
Votes: 0

Description

When exporting a structure containing grid elements to a T3D, there will be lots of warnings about elements being "recursive".
A reimport will on the hand give all elements back, but the relations will be completely broken.

Relations between elements are constructed using proper TCA settings of the type "inline".
Even the rest of the setup for the fields is done with plain core funcitonality.

So it seems there is a problem while exporting tt_content elements that are related to each other.

The result after importing it, gives the impression, that it might be a double export attempt on any child element, so that they will be exported as single elements once, and in a second attempt there is a try to export them again as a child element of a parent grid.
The last one fails leaving us with child elements moved from their container element to the page.

Tested with 4.6.x, but I guess the problem will be the same with 4.5.x


Related issues

related to Grid Elements - Bug #36026: Exporting and reimporting a page tree with grid elements ... Resolved 2012-04-14
duplicated by Grid Elements - Bug #46539: When using T3D export import the nested CE elements are n... Rejected 2013-03-22

History

Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/10495

Updated by Jo Hasenau about 1 year ago

The problem with the double elements is a reulst of a process_datamap hook action of grid elements itself.

But this is just due to the fact that process_datamap is used while importin as well, but without any additional information about TCE main being called by the import action.

So the hook methods will apply stuff that should be applied while copying, moving or creating elements during the usual editing process only.

The solution is to provide a boolean switch, that can be set during the import so that the hooks will "know" about the "isImporting" state.

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10511

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/10513

Updated by Gerrit Code Review about 1 year ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10515

Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10515

Updated by Gerrit Code Review about 1 year ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10515

Updated by Gerrit Code Review 12 months ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10515

Updated by Gerrit Code Review 6 months ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10515

Also available in: Atom PDF