[refs #90] fixed rendering a new pull

This commit is contained in:
Alexander Machehin 2012-10-28 00:44:42 +06:00
parent c6a0dfee97
commit 58a9c68951
1 changed files with 2 additions and 0 deletions

View File

@ -151,5 +151,7 @@ class Projects::PullRequestsController < Projects::BaseController
@pull.from_project = @project
@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_project_owner_uname = @pull.from_project.owner.uname
@pull.from_project_name = @pull.from_project.name
end
end