Check the specified window
This commit is contained in:
@@ -137,7 +137,8 @@ class NotificationRuleForm(RestrictedFormMixin, ModelForm):
|
||||
try:
|
||||
# Passing db to avoid circular import
|
||||
parsed_data = NotificationRuleData(self.request.user, cleaned_data, db=db)
|
||||
parsed_data.test_schedule()
|
||||
if cleaned_data["enabled"]:
|
||||
parsed_data.test_schedule()
|
||||
except RuleParseError as e:
|
||||
self.add_error(e.field, f"Parsing error: {e}")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user