Closed brynwhyman closed 5 years ago
Underlying issue is that duplicateToSubsite()
doesn't respect cascade_duplicates
, it instead has its own setting duplicate_to_subsite_relations
Two possible solutions:
duplicate_to_subsite_relations
config in the elemental moduleduplicateToSubsite()
to respect cascade_duplicates.Option 2 is the better approach :)
Worth noting that we've deprecated duplciateSubsiteRelations
in favour of the cascade duplicates API already.
I actually can't reproduce this issue using SilverStripe 4.4.x-dev, Subsites 2.3.x-dev and Elemental 4.1.x-dev
Yeah, confirmed this is working in the above modules
Using
dnadesign/silverstripe-elemental 4.x-dev 4aee187
If a blocks page includes draft/saved/published blocks, when copying to the page to a subsite through 'Subsite Operations' function, the expected result is the page and the containing blocks are copied to the subsite. Current behaviour copies the page but does not include the saved/published blocks.
Comment from @robbieaverill