Fix 500 error on edit with ui
This commit is contained in:
parent
da88fca34c
commit
86b939158a
|
@ -25,7 +25,7 @@ class EditTreeController < ProjectResourceController
|
||||||
redirect_to project_blob_path(@project, @id), notice: "Your changes have been successfully commited"
|
redirect_to project_blob_path(@project, @id), notice: "Your changes have been successfully commited"
|
||||||
else
|
else
|
||||||
flash[:notice] = "Your changes could not be commited, because the file has been changed"
|
flash[:notice] = "Your changes could not be commited, because the file has been changed"
|
||||||
render :edit
|
render :show
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue