Skip to content

Commit

Permalink
Fix EM alias duplicating when DH characters are used within geolcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuotvez committed Apr 5, 2024
1 parent 91a1a26 commit 5aa569e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GSCFieldApp/Services/DatabaseServices/DataIDCalculation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public string CalculateEarthmatnAlias(int? parentID, string parentAlias)
IEnumerable<EarthMaterial> earthmatTable = earthmatTableRaw.Cast<EarthMaterial>(); //Cast to proper list type
IEnumerable<string> eartmatParents = from e in earthmatTable where e.EarthMatStatID == parentID select e.EarthMatName;

if (parentAlias.Contains(DatabaseLiterals.TableDrillHolePrefix))
if (parentAlias.EndsWith(DatabaseLiterals.TableDrillHolePrefix))
{
eartmatParents = from e in earthmatTable where e.EarthMatDrillHoleID == parentID select e.EarthMatName;
isDrillHole = true;
Expand Down

0 comments on commit 5aa569e

Please sign in to comment.