Merge branch 'master' into meta-tags

This commit is contained in:
Vokhmin Alexey V 2015-02-27 02:27:19 +03:00
commit 4b806e9ca4
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ class Api::V1::PullRequestsController < Api::V1::BaseController
@pull = @project.pull_requests.new
@pull.build_issue title: pull_params[:title], body: pull_params[:body]
@pull.from_project = @project
@pull.from_project = from_project
@pull.to_ref, @pull.from_ref = pull_params[:to_ref], pull_params[:from_ref]
@pull.issue.assignee_id = pull_params[:assignee_id] if can?(:write, @project)
@pull.issue.user, @pull.issue.project = current_user, @project