Closed torleif closed 3 months ago
The elemental area should be duplicated:
I can’t recreate this on Silverstripe 5.2 + Elemental 5.2, what version are you using?
Can't reproduce in CMS 4 either. The elemental area and its blocks get completely duplicated - they're separate records entirely and do not interfere with the originals.
You've ticked the "Double check that your reproduction steps work in a fresh installation of silverstripe/installer" box... but did you actually double check that?
Thanks @kinglozzer and @GuySartorelli, a coworker narrowed down the issue, it seems that the user forms module is overriding the cascade_duplicates array here: https://github.com/silverstripe/silverstripe-userforms/blob/6/code/UserForm.php#L128
Module version(s) affected
4.9.4
Description
When you clone a page (duplicate) it results in the page having references to the elemental items you copied
How to reproduce
Steps to reproduce:
Deleting the elemental item and recreating does not help, because it's the ElementalArea reference that got copied.
You have to delete the entire page and start again. Very frustrating.
Possible Solution
clone the ElementalArea during duplication
Additional Context
No response
Validations
silverstripe/installer
(with any code examples you've provided)