diff --git a/app/controllers/projects/pull_requests_controller.rb b/app/controllers/projects/pull_requests_controller.rb index 20e06f79d..72f394c16 100644 --- a/app/controllers/projects/pull_requests_controller.rb +++ b/app/controllers/projects/pull_requests_controller.rb @@ -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