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

Propagate delete for site to nested elements #547

Conversation

i-just
Copy link
Contributor

@i-just i-just commented Jan 31, 2024

Replicates craftcms/cms#14154 for Super Table.

  • Adds beforeElementDeleteForSite method to the SuperTableField.
  • Adds super-table/utils/prune-orphaned-super-table-blocks command, which loops through each of the sites and, for each site, looks for Super Table blocks which exist for that site but whose owner doesn’t. Resulting blocks are passed to services\Elements::deleteElementsForSite() so they can be deleted for that site.

@engram-design
Copy link
Member

Thanks Iwona!

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