[refs #90] get new pull to this project
This commit is contained in:
parent
f153abf531
commit
e379a603b4
|
@ -144,7 +144,7 @@ class Projects::PullRequestsController < Projects::BaseController
|
||||||
args = params[:to_project].try(:split, '/') || []
|
args = params[:to_project].try(:split, '/') || []
|
||||||
project = (args.length == 2) ? Project.find_by_owner_and_name(*args) : nil
|
project = (args.length == 2) ? Project.find_by_owner_and_name(*args) : nil
|
||||||
raise ActiveRecord::RecordNotFound if bang && !project
|
raise ActiveRecord::RecordNotFound if bang && !project
|
||||||
project.try(:parent) || @project
|
project || @project
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_attrs
|
def set_attrs
|
||||||
|
|
Loading…
Reference in New Issue