restore to current folder when restoring old dashboard version

This commit is contained in:
Marcus Efraimsson
2019-03-06 14:38:40 +01:00
parent 1323043bd4
commit cf500f3157
2 changed files with 125 additions and 0 deletions
+1
View File
@@ -488,6 +488,7 @@ func (hs *HTTPServer) RestoreDashboardVersion(c *m.ReqContext, apiCmd dtos.Resto
saveCmd.Dashboard.Set("version", dash.Version)
saveCmd.Dashboard.Set("uid", dash.Uid)
saveCmd.Message = fmt.Sprintf("Restored from version %d", version.Version)
saveCmd.FolderId = dash.FolderId
return hs.PostDashboard(c, saveCmd)
}