removes uniqnes check on slug when saving dashboards

This commit is contained in:
bergquist
2018-01-30 18:57:33 +01:00
committed by Leonard Gram
parent 6d2a555866
commit bb3183f6cd
7 changed files with 33 additions and 14 deletions

View File

@ -214,7 +214,7 @@ func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand) Response {
}
if err != nil {
if err == m.ErrDashboardWithSameNameExists {
if err == m.ErrDashboardWithSameUIDExists {
return Json(412, util.DynMap{"status": "name-exists", "message": err.Error()})
}
if err == m.ErrDashboardVersionMismatch {