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;
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
									}
 | 
			
		||||
								}
 | 
			
		||||
							}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user