mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboards: created date should be set when creating a folder/dashboard
This commit is contained in:
parent
fce1e3f7f1
commit
39aba03483
@ -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 == "" {
|
||||
|
Loading…
Reference in New Issue
Block a user