Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement onAfterDuplicate #804

Merged
merged 2 commits into from
Jun 21, 2023
Merged

Implement onAfterDuplicate #804

merged 2 commits into from
Jun 21, 2023

Conversation

RVXD
Copy link
Contributor

@RVXD RVXD commented Jun 16, 2023

onAfterDuplicate method is now overwritten in FluentVersionedExtension.

@RVXD RVXD mentioned this pull request Jun 16, 2023
@tractorcow
Copy link
Collaborator

Looks good to me! Are you happy for this to be merged, or still working on it?

@RVXD
Copy link
Contributor Author

RVXD commented Jun 19, 2023

The challenge was that for each translation to work you need a corresponding version of the versioned base record. This is now solved by copying all versions of the base record. The version numbers in the versioned tables need to be matching in all tables. It is probably better to only copy the needed version records of the base record. But we couldn't get that to work for now. Maybe in an updated version. I believe this works. Tested it on multiple versioned and unversioned records and pages in the CMS. For now I think this is okay.

@tractorcow tractorcow merged commit 6313e6d into tractorcow-farm:6 Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants