#930789.5/10.4: DataHandler::getPreviousLocalizedRecordUid() does not check pid
Description
When creating new localizations, DataHandler::getPreviousLocalizedRecordUid() does not check pid while all other places in this class do. This causes issues in some copy/paste cases, especially if gridelements is involved.
To solve these issues, this function should use pid cause just like every other place in this class.
This is not a case for TYPO3 11 where this method is removed.