fix(alerting): add missing evaldata field to set state command

This commit is contained in:
bergquist
2016-09-14 14:35:05 +02:00
parent 31892ed73c
commit a23b7f1371
3 changed files with 13 additions and 8 deletions
+2
View File
@@ -227,6 +227,8 @@ func SetAlertState(cmd *m.SetAlertStateCommand) error {
alert.State = cmd.State
alert.StateChanges += 1
alert.NewStateDate = time.Now()
alert.EvalData = cmd.EvalData
if cmd.Error == "" {
alert.ExecutionError = " " //without this space, xorm skips updating this field
} else {