diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs index fb7190c4..4316976c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemInsertExt.cs @@ -2547,6 +2547,7 @@ namespace VEPROMS.CSLA.Library newItemInfo.UpdateTransitionText(); newItemInfo.UpdateROText(); newItemInfo.UpdatePastedStepTransitionText(); + // Add to tree if (newItemInfo.NextItem != null) { @@ -2564,11 +2565,10 @@ namespace VEPROMS.CSLA.Library } else { - //Create tree node for copied procedure when no other procedures exist in the folder + //Create tree node for copied procedure when no other procedures exist in the working draft (treeNodeReplace) VETreeNode tn = null; tn = new VETreeNode(newItemInfo); treeNodeReplace.Nodes.Add(tn); - treeNodeReplace = tn; } return newItemInfo; }