B2020-009 Copy/Paste procedures, check for background step editor sections (being copied) that are empty (contains no steps) and skip the process that tries to create links for these (non-existing) steps
This commit is contained in:
parent
c81c98ab80
commit
2bc4a8d105
@ -1469,9 +1469,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
if (ed.Type == enhType)
|
if (ed.Type == enhType)
|
||||||
{
|
{
|
||||||
newEnhSectionInfo = ItemInfo.Get(ed.ItemID);
|
newEnhSectionInfo = ItemInfo.Get(ed.ItemID);
|
||||||
StepConfig cfg = newEnhSectionInfo.Steps[0].MyConfig as StepConfig;
|
// B2020-009 if section does not have steps (empty step section) then skip it.
|
||||||
if (cfg.MyEnhancedDocuments.Count > 0) enhStep = newEnhSectionInfo.Steps[0];
|
if (newEnhSectionInfo.Steps != null)
|
||||||
else enhStep = GetNextEnhancedStep(newEnhSectionInfo.Steps[0]);
|
{
|
||||||
|
StepConfig cfg = newEnhSectionInfo.Steps[0].MyConfig as StepConfig;
|
||||||
|
if (cfg.MyEnhancedDocuments.Count > 0) enhStep = newEnhSectionInfo.Steps[0];
|
||||||
|
else enhStep = GetNextEnhancedStep(newEnhSectionInfo.Steps[0]);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user