Bug #17959
closedSection-based FCEs are saved with incorrect element ID
0%
Description
When working with trunk and FCEs that have sections defined, saving the FCE results in bad data in the the FCE XML. Instead of an element like
<section index="1">
I end up with
<field index="ID-edd5ba543c-idx36456-form">
This data results in PHP errors in both the frontend and in the TV Page Module.
From what I can tell, these IDs are related to the FCE changes in changeset 1628. In TCEMain, the temporary IDs are mapped into normal section indexes, and the normal section elements are saved FCE XML. In the current code, this mapping only occurs if the element is not new. When I move the mapping outside this check so that it always occurs, saving and rendering work fine for me.
I'm attaching the patch for this issue. I don't fully understand all the code at this point in TYPO3 so there may be better ways to get it done, but it does seem to work for me.
(issue imported from #M7067)
Files
Updated by Dmitry Dulepov over 16 years ago
I think patch is correct.
Jeff, do you mind submitting it yourself to core list?
Updated by Jeff Segars over 16 years ago
Sure thing. I'll do a little more testing here since I vaguely remember a few changes around this code since the ticket was originally opened.
Updated by Alexander Opitz over 11 years ago
- Status changed from Accepted to Needs Feedback
- Target version deleted (
0)
The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?
Updated by Alexander Opitz about 11 years ago
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Jeff Segars) - Is Regression set to No
No feedback for over 90 days.