removes uniqnes check on slug when saving dashboards
This commit is contained in:
1 parent
6d2a555866
commit
bb3183f6cd
7 files changed
+33
-14
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user