Fix updating issue 500 error

This commit is contained in:
Dmitriy Zaporozhets 2015-02-22 22:26:09 -08:00
parent 19327e6535
commit 9459e9db24

View file

@ -79,7 +79,7 @@ class Projects::IssuesController < Projects::ApplicationController
format.js
format.html do
if @issue.valid?
redirect_to [@project.namespace, @project, @issue]
redirect_to [@project.namespace.becomes(Namespace), @project, @issue]
else
render :edit
end