[refs #90] fixed rendering a new pull
This commit is contained in:
parent
c6a0dfee97
commit
58a9c68951
|
@ -151,5 +151,7 @@ class Projects::PullRequestsController < Projects::BaseController
|
||||||
@pull.from_project = @project
|
@pull.from_project = @project
|
||||||
@pull.to_ref = (pull_params[:to_ref].presence if pull_params) || @pull.to_project.default_branch
|
@pull.to_ref = (pull_params[:to_ref].presence if pull_params) || @pull.to_project.default_branch
|
||||||
@pull.from_ref = params[:treeish].presence || (pull_params[:from_ref].presence if pull_params) || @pull.from_project.default_branch
|
@pull.from_ref = params[:treeish].presence || (pull_params[:from_ref].presence if pull_params) || @pull.from_project.default_branch
|
||||||
|
@pull.from_project_owner_uname = @pull.from_project.owner.uname
|
||||||
|
@pull.from_project_name = @pull.from_project.name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue