mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboard_history: fixed issue with save as & overwrite
This commit is contained in:
parent
9b629cd5a6
commit
5409f4c0eb
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user