Skip to content

Commit

Permalink
Merge pull request #2752 from johannaengland/tests/alertprofiles/add-…
Browse files Browse the repository at this point in the history
…expression-tests

Add more expression operator tests for alert profiles and fix cleaning in ExpressionForm
  • Loading branch information
johannaengland authored Nov 21, 2023
2 parents 74a9c23 + f325211 commit 9add534
Show file tree
Hide file tree
Showing 2 changed files with 413 additions and 172 deletions.
2 changes: 1 addition & 1 deletion python/nav/web/alertprofiles/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def clean(self) -> Dict[str, Any]:

if operator_type == Operator.IN:
validated_data["value"] = "|".join(value)
elif operator_type == Operator.EQUALS:
elif operator_type == Operator.EQUALS and isinstance(value, list):
validated_data["value"] = value[0]

return validated_data
Expand Down
Loading

0 comments on commit 9add534

Please sign in to comment.