B2016-023: For enhanced, display pasted steps in edit window if editor is open
This commit is contained in:
parent
948fe7f1de
commit
db5198ad01
@ -1025,6 +1025,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
{
|
{
|
||||||
// Insert the enhanced steps. Loop through all enhanced document types, insert from
|
// Insert the enhanced steps. Loop through all enhanced document types, insert from
|
||||||
// the paste item's linked step.
|
// the paste item's linked step.
|
||||||
|
ItemInfo newEnh = null;
|
||||||
foreach (EnhancedDocument edSource in pasteFromItem.GetMyEnhancedDocuments())
|
foreach (EnhancedDocument edSource in pasteFromItem.GetMyEnhancedDocuments())
|
||||||
{
|
{
|
||||||
// create a new enhanced step and link it to this new source step.
|
// create a new enhanced step and link it to this new source step.
|
||||||
@ -1032,13 +1033,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
// The ed.Type & ed.itemid show what type of enhanced document (use to create new
|
// The ed.Type & ed.itemid show what type of enhanced document (use to create new
|
||||||
// config Type).
|
// config Type).
|
||||||
ItemInfo exEnh = ItemInfo.Get(edSource.ItemID);
|
ItemInfo exEnh = ItemInfo.Get(edSource.ItemID);
|
||||||
ItemInfo newEnh = exEnh.InsertEnhancedSteps(tmpCopyStartSourceItem.MyContent.Text, null, addType, MyContent.Type, edSource.Type, this.ItemID);
|
newEnh = exEnh.InsertEnhancedSteps(tmpCopyStartSourceItem.MyContent.Text, null, addType, MyContent.Type, edSource.Type, this.ItemID);
|
||||||
if (newEnh == null) return null;
|
if (newEnh == null) return null;
|
||||||
StepConfig sc = new StepConfig(MyContent.Config);
|
StepConfig sc = new StepConfig(MyContent.Config);
|
||||||
sc.AddEnhancedDocument(edSource.Type, newEnh.ItemID);
|
sc.AddEnhancedDocument(edSource.Type, newEnh.ItemID);
|
||||||
SaveConfig(sc.ToString());
|
SaveConfig(sc.ToString());
|
||||||
}
|
}
|
||||||
return null;
|
return newEnh;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// loop through all enhanced document types, pasting in the copied item(s).
|
// loop through all enhanced document types, pasting in the copied item(s).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user