Bug #92783
closed
Record inserted on wrong pid
Added by Philipp Parzer about 4 years ago.
Updated over 3 years ago.
Description
If a record is localized and then moved to another page(A), the l10n_source field of the translated record on the old page(B) points to a record on a different pid(A).
If you create a new content element after the moved item on the new page(A) and want to translate it, the translated record of the new element is inserted on the old pid(B) because TYPO3 selects the record before itself by order and then selects the localized record by l10n_source which is on the old page(B).
This can lead to strange situations if records are copied and/or moved to different pages.
In this commit, the behaviour to use the l10n_source rather than the l18n_parent was introduced:
https://github.com/TYPO3/TYPO3.CMS/commit/3c6cdaedd288a3514d48e99fe298870606769201
- Status changed from New to Under Review
I didn't get the problem completely:
- What is moved, a translation or the original record?
- Where does the source point to, the default language or some other translation?
- Is the translation a free mode translation?
- The original record is moved - it is translated in free mode, so the translation doesn't get moved and stays on the old page (connected mode would move the translation too)
- The source of the translation still points to the original record which is now on another page
- As mentioned above its in free mode
If the moving process is correct or not, I cannot say - but nevertheless it should never ever happen, that a translation is inserted on another page, than the one I'm currently translating.
- Related to Bug #92198: Localize method gets wrong PID from records generated during former free mode translations added
- Assignee set to Philipp Parzer
Seems we're suffering from that in a project, too. Will fix / finish the patch now.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
- Related to Bug #93078: 9.5/10.4: DataHandler::getPreviousLocalizedRecordUid() does not check pid added
Also available in: Atom
PDF