Skip to content

Commit

Permalink
Fixed infinite loop with DH and EM records > 26.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuotvez committed Apr 5, 2024
1 parent a940a3b commit 91a1a26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GSCFieldApp/Services/DatabaseServices/DataIDCalculation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,8 @@ public string CalculateEarthmatnAlias(int? parentID, string parentAlias)

//Find if last two are characters
string secondLastCharacter = lastAlias.ToList()[lastAlias.Length - 2].ToString();
if (!isDrillHole && secondLastCharacter != "H")
string thirdLastCharacter = lastAlias.ToList()[lastAlias.Length - 3].ToString() + secondLastCharacter;
if (thirdLastCharacter != "DH")
{
int secondLastInteger = -1;
if (!int.TryParse(secondLastCharacter, out secondLastInteger))
Expand Down

0 comments on commit 91a1a26

Please sign in to comment.