Actions
Bug #84951
closedLocalization: Copying new record in existing localization has off-by-one issue
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
Start date:
2018-05-09
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
The default language has two records, which are copied (not translated) into a different language.
A new record is added in the default language at any position. If the records gets copied into the other language, the calculated position is wrong, the record is one "slot" above.
The issue is caused by BackendUtility::getRecordLocalization()
(called by DataHandler::getPreviousLocalizedRecordUid()
) which uses the l18n_parent field to get the original record. For copied records, this is not correct, as the parent is always 0
.
Actions