Deleting nodes from tree has strange behviour

Description

I tested tree in window Account Element and noticed strange behaviour when deleting records. I would like to discuss this behaviour and give some impulses to make it better.

My question is, how should be handled deleting of summary records, when they have some sub nodes?

I noticed when parent tab is deleted, child records are not deleted, but also not displayed in tree, only first child of deleted parent was displayed in root (strange). Closing the window, running cache reset and opening window again made childs of deleted parent displayed (why they are not displayed without cache reset? Just after parent is deleted?).

What about idea when all child notes will be deleted, where parent record is deleted? Maybe pop up dialog to ask user what should be done (Delete sub nodes or leave them in root) ?

Anyway, I think that mentioned bug with non displayed child nodes of already deleted parent should be fixed.

Environment

None

Attachments

1

Activity

Tomáš Švikruha 
February 6, 2015 at 8:30 AM

I've just discussed this topic with . We are sharing same idea that Tree Node shouldn't be deletable when has some child nodes. This solution will solved data inconsistency (I noticed that reference to parent_id in child nodes is not updated when parent is deleted) and strange behaviour with rendering tree.

This could be simple and very useful solution, WDYT?

Fixed

Details

Assignee

Reporter

Labels

Components

Priority

Created February 5, 2015 at 11:40 AM
Updated May 4, 2015 at 5:43 PM
Resolved February 25, 2015 at 9:02 PM