Project

General

Profile

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

Fixed version - Lucas Arnaud, 2016-09-29 21:53

View differences:

app/controllers/issues_controller.rb
end
@issue.project = @project
if request.get?
@issue.project ||= @issue.allowed_target_projects.first
if @issue.project.blank? || !@issue.project.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?
(2-2/2)