B2017-170: fix null reference and remove fix for B2017-169 (fixed in underlying code in ItemInfoList)
This commit is contained in:
@@ -614,10 +614,10 @@ namespace VEPROMS.CSLA.Library
|
||||
if (itemInfo.MyContent.ContentPartCount > 0)
|
||||
foreach (PartInfo pi in itemInfo.MyContent.ContentParts)
|
||||
{
|
||||
List<ItemInfo> myItems = new List<ItemInfo>();
|
||||
//List<ItemInfo> myItems = new List<ItemInfo>();
|
||||
foreach (ItemInfo ii in pi.MyItems)
|
||||
myItems.Add(ii);
|
||||
foreach (ItemInfo ii in myItems)
|
||||
// myItems.Add(ii);
|
||||
//foreach (ItemInfo ii in myItems)
|
||||
MyRefreshTransitions(ii, itemInfo, (itemInfo as SectionInfo) ?? sectionInfo, procInfo, docVersionInfo, tranLookup);
|
||||
}
|
||||
if (itemInfo.MyContent.ContentTransitionCount > 0)
|
||||
@@ -671,7 +671,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
if (!forceConvertToText)
|
||||
{
|
||||
if (itemInfo.MyDocVersion.VersionID != traninfo.MyItemToID.MyDocVersion.VersionID) //different doc version
|
||||
if (itemInfo.MyDocVersion != null && traninfo.MyItemToID.MyDocVersion != null && 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
|
||||
@@ -781,10 +781,10 @@ namespace VEPROMS.CSLA.Library
|
||||
if (itemInfo.MyContent.ContentPartCount > 0)
|
||||
foreach (PartInfo pi in itemInfo.MyContent.ContentParts)
|
||||
{
|
||||
List<ItemInfo> myItems = new List<ItemInfo>();
|
||||
//List<ItemInfo> myItems = new List<ItemInfo>();
|
||||
foreach (ItemInfo ii in pi.MyItems)
|
||||
myItems.Add(ii);
|
||||
foreach (ItemInfo ii in myItems)
|
||||
// myItems.Add(ii);
|
||||
//foreach (ItemInfo ii in myItems)
|
||||
MyRefreshReferenceObjects(ii, itemInfo, (itemInfo as SectionInfo) ?? sectionInfo, docVersionInfo);
|
||||
}
|
||||
ROFstInfo rofstinfo = docVersionInfo.DocVersionAssociations[0].MyROFst;
|
||||
@@ -5691,6 +5691,7 @@ namespace VEPROMS.CSLA.Library
|
||||
try
|
||||
{
|
||||
ItemInfoList tmp = DataPortal.Fetch<ItemInfoList>(new ItemListSearchCriteria(docVersionList, stepTypeList, searchString, caseSensitive, includeLinks, includeRtfFormatting, includeSpecialCharacters, unitPrefix));
|
||||
tmp.SourceOfList = "Search";
|
||||
ItemInfo.AddList(tmp);
|
||||
tmp.AddEvents();
|
||||
return tmp;
|
||||
|
Reference in New Issue
Block a user