Opened 8 years ago

Closed 8 years ago

#13736 closed defect (invalid)

Tree: copied items within a tree have the same ID.

Reported by: siqi Owned by:
Priority: blocker Milestone: tbd
Component: Dijit Version: 1.7.0b1
Keywords: dijit.Tree DnD Cc: zhongsq@…
Blocked By: Blocking:

Description

The issue can be reproduced in following steps: Open dijit/tests/tree/test_Tree_DnD.html, hold on ctrl key and move the node 'Vegetables' to after 'Cereals'.

The copied new node 'Vegetables' and the original node 'Vegetables' have the same id for the data item.

Change History (1)

comment:1 Changed 8 years ago by bill

Resolution: invalid
Status: newclosed
Summary: Copied items have the same ID.Tree: copied items within a tree have the same ID.

Actually, there is no new "Vegetables" item, but rather the "Vegetables" item now has two parents. So, there can only be one id. If you want to actually create an actual copy of the item, and give it a new id, you would need to modify the pasteItem() method in the model.

Note: See TracTickets for help on using tickets.