provisioning: enables title changes for dashboards

This commit is contained in:
bergquist
2018-01-24 15:22:03 +01:00
parent 77a4ccb822
commit 57e7048b8f
3 changed files with 55 additions and 16 deletions

View File

@@ -31,7 +31,6 @@ func saveDashboard(sess *DBSession, cmd *m.SaveDashboardCommand) error {
// try get existing dashboard
var existing, sameTitle m.Dashboard
if dash.Id > 0 {
dashWithIdExists, err := sess.Where("id=? AND org_id=?", dash.Id, dash.OrgId).Get(&existing)
if err != nil {