When deleting children of parent node, nodehierarchy_delete_children will only delete first level of children, and children children will not be deleted.

Proposed patch will modify nodehierarchy_delete_children so it will recursively delete all children in any level of depth.

CommentFileSizeAuthor
nodehierarchy_deep_delete_children.patch1.49 KBpivica

Comments

pivica’s picture

Status: Active » Needs review
andreiashu’s picture

Status: Needs review » Reviewed & tested by the community

I tested it and the patch works perfectly.
Thanks pivica
Lets hope it will be commited soon.

markhalliwell’s picture

Component: Code » Drupal/PHP Code

Copy & Pasted: This issue pertains to the 6.x-1.x branch which is now legacy and is over two years old. If this issue is not applicable anymore, please consider closing it. Otherwise, please update this issue appropriately. Will be closed in two weeks if no response.

jbylsma’s picture

Status: Reviewed & tested by the community » Fixed

Backported from 6.x-2.x, which is basically the equivalent of what pivica posted three years ago. Ouch. Currently in 6.x-1.x-dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.