[refs #90] fixed error on create
This commit is contained in:
parent
53eda3fbf7
commit
8df87ed292
|
@ -38,6 +38,8 @@ class Projects::PullRequestsController < Projects::BaseController
|
|||
|
||||
@pull = to_project.pull_requests.new pull_params
|
||||
@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
|
||||
|
||||
if @pull.valid? # FIXME more clean/clever logics
|
||||
@pull.save # set pull id
|
||||
|
|
Loading…
Reference in New Issue