Skip to content

[5.x]: "Delete (with descendants)" element action doesn't delete descendants #15273

@mmikkel

Description

@mmikkel

What happened?

Description

The "Delete (with descendents)" element action doesn't actually delete descendants; only selected elements are deleted:

CleanShot.2024-07-01.at.11.16.26.mp4

Unable to reproduce on Craft 4.10.

Steps to reproduce

  1. Have a multi-level structure and open its index view
  2. Select an entry with children. Don't select any of its child entries.
  3. Click the element action disclosure menu, and select "Delete (with descendants)".
  4. Confirm that only the selected (parent) entry has been deleted, and none of its descendents

Expected behavior

Descendents being deleted.

Actual behavior

Only selected elements are deleted.

Craft CMS version

5.2.4.1

PHP version

8.2.20

Operating system and version

DDEV v1.23.2

Database type and version

MySQL 8.0.36

Image driver and version

No response

Installed plugins and versions

None

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions