diff --git a/app/controllers/projects/pull_requests_controller.rb b/app/controllers/projects/pull_requests_controller.rb index 478e230f5..6a8cc030d 100644 --- a/app/controllers/projects/pull_requests_controller.rb +++ b/app/controllers/projects/pull_requests_controller.rb @@ -144,7 +144,7 @@ class Projects::PullRequestsController < Projects::BaseController args = params[:to_project].try(:split, '/') || [] project = (args.length == 2) ? Project.find_by_owner_and_name(*args) : nil raise ActiveRecord::RecordNotFound if bang && !project - project.try(:parent) || @project + project || @project end def set_attrs