diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index d0c2c1a2..35ce5f77 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -739,6 +739,24 @@ namespace VEPROMS.CSLA.Library content.ConvertTransitionToTextInGrid(null, null); content.Save(); } + else // B2018-043 Eliminate infinite loop for invalid transition structure + { + bool hasAnnotation = false; + AnnotationType myType = AnnotationType.GetByNameOrCreate("Link Converted To Text"); + foreach (AnnotationInfo anot in itemInfo.ItemAnnotations) + { + if (anot.TypeID == myType.TypeID && anot.SearchText == "Invalid Transition Format") + hasAnnotation = true; + } + if (!hasAnnotation) + { + using (Item myItem = itemInfo.Get()) + { + Annotation.MakeAnnotation(myItem, myType, "", "Invalid Transition Format", null); + } + } + break; + } } } }