Skip to content

Commit

Permalink
Alert rule Apply To (Tag) display fix
Browse files Browse the repository at this point in the history
The Apply To (Tag) is set to {All} when creating a rule but when editing a rule it's blank. Fixed display issue so it shows as {All} when editing.
trimble-oss#1186
  • Loading branch information
DavidWiseman committed Jan 21, 2025
1 parent 858af5d commit 190d5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DBADashGUI/DBADashAlerts/Rules/AlertRuleBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static AlertRuleBase GetRule(int ruleID, RuleTypes ruleType, short priori
};
rule.RuleID = ruleID;
rule.Priority = (Alert.Priorities)priority;
rule.ApplyToTag = applyToTagID <= 0 ? null : new DBADashTag()
rule.ApplyToTag = applyToTagID <= 0 ? DBADashTag.AllInstancesTag() : new DBADashTag()
{ TagID = applyToTagID, TagName = applyToTag.Split(":")[0], TagValue = applyToTag.Split(":")[1] };
rule.EvaluationPeriodMins = evaluationPeriodMins;
rule.IsActive = isActive;
Expand Down

0 comments on commit 190d5a6

Please sign in to comment.