B2020-132: Proms crashes when attempting to restore a deleted step
This commit is contained in:
parent
9f8d070e34
commit
fe1e392e4e
@ -798,11 +798,12 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
if (!forceConvertToText) //check to see if external with internal format
|
if (!forceConvertToText) //check to see if external with internal format
|
||||||
{
|
{
|
||||||
|
tran.MyContent.RefreshContentItems(); // B2020-132: Proms crashing when attempting to restore a deleted step
|
||||||
if (tran.MyContent.ContentItems[0].MyProcedure.ItemID != tran.MyItemToID.MyProcedure.ItemID)
|
if (tran.MyContent.ContentItems[0].MyProcedure.ItemID != tran.MyItemToID.MyProcedure.ItemID)
|
||||||
if (tran.MyContent.ContentItems[0].ActiveFormat != null)
|
if (tran.MyContent.ContentItems[0].ActiveFormat != null)
|
||||||
if (!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("Proc"))
|
if (!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("Proc"))
|
||||||
if (!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("other proc"))
|
if (!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("other proc"))
|
||||||
forceConvertToText = true;
|
forceConvertToText = true;
|
||||||
}
|
}
|
||||||
oldContent.FixTransitionText(tran, forceConvertToText);
|
oldContent.FixTransitionText(tran, forceConvertToText);
|
||||||
//if (content.IsDirty)
|
//if (content.IsDirty)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user