B2024-042 - When replacing a procedure, this change will now replace the procedure correctly and add it to the tree node, previously it would replace th eprocedure, then add a whole new procedure to the node, incorrectly using the copy procedure which … #358

Merged
kruffing merged 2 commits from B2024-042 into Development 2024-07-22 09:45:18 -04:00
Showing only changes of commit bf72a6bf78 - Show all commits

View File

@ -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;
}