[refs #90] fixed error on create

This commit is contained in:
Alexander Machehin 2012-11-14 16:51:10 +06:00
parent 53eda3fbf7
commit 8df87ed292
1 changed files with 2 additions and 0 deletions

View File

@ -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