Merge pull request #36313 from barredterra/delete-root-item-group
fix(Item Group): allow root deletion
This commit is contained in:
commit
a25f34c3d5
@ -73,7 +73,7 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
||||
return self.route
|
||||
|
||||
def on_trash(self):
|
||||
NestedSet.on_trash(self)
|
||||
NestedSet.on_trash(self, allow_root_deletion=True)
|
||||
WebsiteGenerator.on_trash(self)
|
||||
self.delete_child_item_groups_key()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user