Commit 0384eecf by Torkel Ödegaard

fix: minor fix for bug when saving alert with empty message, fixes #7927

parent 2877ad1a
...@@ -171,6 +171,7 @@ func upsertAlerts(existingAlerts []*m.Alert, cmd *m.SaveAlertsCommand, sess *xor ...@@ -171,6 +171,7 @@ func upsertAlerts(existingAlerts []*m.Alert, cmd *m.SaveAlertsCommand, sess *xor
if alertToUpdate.ContainsUpdates(alert) { if alertToUpdate.ContainsUpdates(alert) {
alert.Updated = time.Now() alert.Updated = time.Now()
alert.State = alertToUpdate.State alert.State = alertToUpdate.State
sess.MustCols("message")
_, err := sess.Id(alert.Id).Update(alert) _, err := sess.Id(alert.Id).Update(alert)
if err != nil { if err != nil {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment