Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Copying page w/ record with uid smaller than parent fails #1670
Imagine the following situation:
Copying that page will fail with a message "The record tt_content:X was designated as a Flux parent for tt_content:NEW… during a copy operation, but the designated parent record does not appear to have been copied. It is possible this is caused by a third-party hook subscriber somehow setting invalid values in DB."
This happens due to the nature of the copy process:
One viable solution IMO is to keep a stack of all these "failed" records, and remap them after each operation.
Another would be to do all these remappings only when the cmdmap is finished. For that, the mentioned hook implementation should only record the "records to be remapped" and another hook (to be determined, probably in