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

Recipients get deleted when form page gets unpublished #1152

Open
bumbus opened this issue Jun 1, 2022 · 2 comments
Open

Recipients get deleted when form page gets unpublished #1152

bumbus opened this issue Jun 1, 2022 · 2 comments

Comments

@bumbus
Copy link
Contributor

bumbus commented Jun 1, 2022

"silverstripe/recipe-cms": "~4.10.0@stable",
"silverstripe/userforms": "^5",

A customer of ours has recognized, that the recipients get deleted if the page gets unpublished.
I believe this is unwanted behaviour.

@bumbus
Copy link
Contributor Author

bumbus commented Jun 1, 2022

Ok it can be prevented through the config:

SilverStripe\UserForms\Model\UserDefinedForm:
  cascade_deletes: false

Nevertheless, I believe it is a strange default behaviour.

@lbradley-mm
Copy link

Probably could do with fixing in framework so that when Versioned item is un-published it doesn't cascade to un-versioned relations
Although would we want it to cascade on delete?
(bare in mind that a draft can be deleted whilst the live is still available)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants