Przeglądaj źródła

dashboard_history: fixed issue with save as & overwrite

Torkel Ödegaard 8 lat temu
rodzic
commit
5409f4c0eb
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      pkg/services/sqlstore/dashboard.go

+ 1 - 0
pkg/services/sqlstore/dashboard.go

@@ -63,6 +63,7 @@ func SaveDashboard(cmd *m.SaveDashboardCommand) error {
 			if dash.Id != sameTitle.Id {
 				if cmd.Overwrite {
 					dash.Id = sameTitle.Id
+					dash.Version = sameTitle.Version
 				} else {
 					return m.ErrDashboardWithSameNameExists
 				}