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

This commit is contained in:
Marcus Efraimsson 2018-02-20 13:54:31 +01:00
parent fce1e3f7f1
commit 39aba03483

View File

@ -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 == "" {