B2017-068 don’t convert transition to other procedure to text if the link is valid for the paste destination
This commit is contained in:
parent
0e18aa7b83
commit
8f81199574
@ -651,6 +651,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
if (itemInfo.MyProcedure.ItemID != traninfo.MyItemToID.MyProcedure.ItemID) //different proc
|
||||
if (!itemInfo.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[traninfo.TranType].TransMenu.Contains("Proc")) //internal format
|
||||
if (!itemInfo.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[traninfo.TranType].TransMenu.Contains("other proc")) //B2017-068 paste with transition fix
|
||||
{
|
||||
forceConvertToText = true;
|
||||
TranFixCount++;
|
||||
@ -665,6 +666,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (itemInfo.MyDocVersion.VersionID != traninfo.MyItemToID.MyDocVersion.VersionID) //different doc version
|
||||
{
|
||||
if (!itemInfo.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[traninfo.TranType].TransMenu.Contains("Proc")) //internal format
|
||||
if (!itemInfo.ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[traninfo.TranType].TransMenu.Contains("other proc")) //B2017-068 paste with transition fix
|
||||
{
|
||||
forceConvertToText = true;
|
||||
TranFixCount++;
|
||||
|
@ -827,13 +827,15 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
if (tran.MyContent.ContentItems[0].MyProcedure.ItemID != tran.MyItemToID.MyProcedure.ItemID)
|
||||
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")) //B2017-068 paste with transition fix
|
||||
forceConvertToText = true;
|
||||
}
|
||||
if (!forceConvertToText)
|
||||
{
|
||||
// bug fix B2016-148 added check if transition had procedure information in which case we do not want to convert it to text
|
||||
if (tran.MyContent.ContentItems[0].MyDocVersion.VersionID != tran.MyItemToID.MyDocVersion.VersionID &&
|
||||
!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("Proc"))
|
||||
!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("Proc") &&
|
||||
!tran.MyContent.ContentItems[0].ActiveFormat.PlantFormat.FormatData.TransData.TransTypeList[tran.TranType].TransMenu.Contains("other proc")) //B2017-068 paste with transition fix
|
||||
forceConvertToText = true;
|
||||
}
|
||||
content.FixTransitionText(tran, forceConvertToText);
|
||||
|
Loading…
x
Reference in New Issue
Block a user