B2020-089: Page number transitions not resolving correctly in HLS that are upper cased

This commit is contained in:
Kathy Ruffing 2020-07-10 14:18:44 +00:00
parent af0d1ffa76
commit ff6e04b5df
4 changed files with 4 additions and 4 deletions

View File

@ -1592,7 +1592,7 @@ namespace VEPROMS.CSLA.Library
if (ti.TransitionID == transitionID)
{
string path = ti.ResolvePathTo(_MyFormat, _MyItemInfo, ti.TranType, ti.MyItemToID, ti.MyItemRangeID);
return path;
if (!path.Contains("(Page ~)"))return path; // B2020-089, don't change back to a Page ~ if page number already set.
}
}
return text;

View File

@ -773,7 +773,7 @@ namespace VEPROMS.CSLA.Library
string pattern = string.Format(@"<START\]\\v0([^#]*)\\v #Link:Transition(|Range):[0-9]* <CTID=-[0-9]+>( [0-9]*){{1,2}}\[END>");
//string pattern = string.Format(@".*\\v <START\](\\[^v \\]+)*\\v0(\\[^v \\]+)* ([^#]*?)(\\[^v'? \\]+)*\\v(\\[^v \\]+)* #Link:Transition[^:]*?:[0-9]+ <CTID=-[0-9]+>( [0-9]*){{1,2}}\[END>");
Match m = Regex.Match(fromInfo.MyContent.Text, pattern);
if (m.Groups.Count > 1 && m.Groups[1].Value.Contains("(Page ~)"))
if (m.Groups.Count > 1 && m.Groups[1].Value.ToUpper().Contains("(PAGE ~)")) // B2020-089, check for upper case Page ~ in case step was upper cased
pagenum = true;
}
}

View File

@ -592,7 +592,7 @@ namespace VEPROMS.CSLA.Library
SqlConnection cn = (SqlConnection)ApplicationContext.LocalContext["cn"];
string pattern = string.Format(@"<START\]\\v0([^#]*)\\v #Link:Transition(|Range):[0-9]* <CTID={0}>( [0-9]*){{1,2}}\[END>", _TransitionID);
Match m = Regex.Match(myContent.Text, pattern);
if (m.Groups.Count > 1 && m.Groups[1].Value.Contains("(Page ~)"))
if (m.Groups.Count > 1 && m.Groups[1].Value.ToUpper().Contains("(PAGE ~)")) // B2020-089, check for upper case Page ~ in case step was upper cased
_Config = "<Config><Transition Formatted=\"True\" /></Config>";
else
_Config = string.Empty;

View File

@ -573,7 +573,7 @@ namespace Volian.Controls.Library
myLength += m.Groups[3].Length;
}
string gg = ((string)MyFlexGrid[r, c]).Substring(myIndex, myLength);
if (gg.Contains("(Page ~)")) RtfTransPageNumList.Add(tid);
if (gg.ToUpper().Contains("(PAGE ~)")) RtfTransPageNumList.Add(tid); // B2020-089, check for upper case Page ~ in case step was upper cased
}
}
}