diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs index 8646ac02..144b9d95 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs @@ -582,7 +582,9 @@ namespace VEPROMS.CSLA.Library public string FixContentText(RoUsageInfo rousg, string value, int rotype, ROFstInfo origROFstInfo) { string filenameonly = null; - if (Text != null && Text.Length > 0) + //B2020-127 don't try to parse out a file name from "?" (happens with the RO figure no longer exists) + // - this allows it to drop through and put an annotation on the step + if (Text != null && Text.Length > 0 && value != "?") { if (ContentItems[0].MyItem.MyItemInfo.IsFigure) filenameonly = value.Substring(0, value.IndexOf("\n")); @@ -964,7 +966,9 @@ namespace VEPROMS.CSLA.Library public void FixContentText(RoUsageInfo rousg, string value, int rotype, ROFstInfo origROFstInfo, ItemInfo ii) // string newvalue) { string fileNameOnly = null; - if (ii.IsFigure && Text != null && Text.Length > 0) + //B2020-127 don't try to parse out a file name from "?" (happens with the RO figure no longer exists) + // - this allows it to drop through and put an annotation on the step + if (ii.IsFigure && Text != null && Text.Length > 0 && value != "?") fileNameOnly = value.Substring(0,value.IndexOf("\n")).Replace(@"\u8209?","-"); // check only the file name of the RO figure string newvalue = value; newvalue = newvalue.Replace("{", @"\{").Replace("}", @"\}");