From bb6888885e872293a6f563181401653b3c683275 Mon Sep 17 00:00:00 2001 From: bergquist Date: Mon, 13 Jun 2016 15:01:07 +0200 Subject: [PATCH] fix(alerting): makes valid to save more explicit --- pkg/models/alert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/alert.go b/pkg/models/alert.go index bea5fdad334..368cfaa2876 100644 --- a/pkg/models/alert.go +++ b/pkg/models/alert.go @@ -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 {