mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(alerting): makes valid to save more explicit
This commit is contained in:
@@ -24,7 +24,7 @@ type Alert struct {
|
||||
}
|
||||
|
||||
func (alert *Alert) ValidToSave() bool {
|
||||
return alert.DashboardId != 0
|
||||
return alert.DashboardId != 0 && alert.OrgId != 0 && alert.PanelId != 0
|
||||
}
|
||||
|
||||
func (this *Alert) ContainsUpdates(other *Alert) bool {
|
||||
|
||||
Reference in New Issue
Block a user