#37: fix for assignee User to PullRequest

This commit is contained in:
Vokhmin Alexey V 2013-03-21 00:46:33 +04:00
parent 4261e250e8
commit c3a9246d09
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ class Projects::PullRequestsController < Projects::BaseController
authorize! :read, to_project
@pull = to_project.pull_requests.new pull_params
@pull.issue.assignee_id = (params[:issue] || {})[:assignee_id]
@pull.issue.user, @pull.issue.project, @pull.from_project = current_user, to_project, @project
@pull.from_project_owner_uname = @pull.from_project.owner.uname
@pull.from_project_name = @pull.from_project.name