BUG Fix jstree when duplicating subtrees
Merge pull request #3031 from tractorcow/pulls/3.1-fix-tree-duplication

BUG Fix jstree when duplicating subtrees