Commit 39aba034 by Marcus Efraimsson

dashboards: created date should be set when creating a folder/dashboard

parent fce1e3f7
......@@ -60,6 +60,8 @@ func saveDashboard(sess *DBSession, cmd *m.SaveDashboardCommand) error {
if existing.PluginId != "" && cmd.Overwrite == false {
return m.UpdatePluginDashboardError{PluginId: existing.PluginId}
}
} else {
dash.Created = time.Now()
}
if dash.Uid == "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment