B2020-089: Page number transitions not resolving correctly in HLS that are upper cased
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user