mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 09:33:34 -06:00
fix: minor fix for bug when saving alert with empty message, fixes #7927
This commit is contained in:
parent
2877ad1a7d
commit
0384eecf5c
@ -171,6 +171,7 @@ func upsertAlerts(existingAlerts []*m.Alert, cmd *m.SaveAlertsCommand, sess *xor
|
||||
if alertToUpdate.ContainsUpdates(alert) {
|
||||
alert.Updated = time.Now()
|
||||
alert.State = alertToUpdate.State
|
||||
sess.MustCols("message")
|
||||
_, err := sess.Id(alert.Id).Update(alert)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user