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

FIX Pages now correctly duplicate children across subsites #387

Conversation

robbieaverill
Copy link
Contributor

@robbieaverill robbieaverill commented Aug 23, 2018

Resolves #384

I've removed some of the custom duplication (and legacy) logic and replaced it with some more "core" API calls inside a modified subsite state callback, and have restored the use of $includeChildren in recursive duplication of children.

#386 deprecates the duplicateSubsiteRelations method since we should now use cascade_duplicates config which will automatically inherit the subsite state now with this PR change (see onBeforeDuplicate)

@ScopeyNZ ScopeyNZ merged commit 039a7a8 into silverstripe:2.1 Aug 23, 2018
@ScopeyNZ
Copy link
Member

Thanks for the contribution @robbieaverill ! 🎉

@ScopeyNZ ScopeyNZ deleted the pulls/2.1/fix-cross-subsite-duplication branch August 23, 2018 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants