Project

General

Profile

Defect #23959 » Fixing-issues-form-load-when-copying-issue-from-a-pr.patch

Lucas Arnaud, 2016-09-29 17:09

View differences:

app/controllers/issues_controller.rb
end
@issue.project = @project
if request.get?
@issue.project ||= @issue.allowed_target_projects.first
if @issue.project || !@issue.in?(@issue.allowed_target_projects)
@issue.project = @issue.allowed_target_projects.sorted.first
end
end
@issue.author ||= User.current
@issue.start_date ||= User.current.today if Setting.default_issue_start_date_to_creation_date?
(1-1/2)