Defect #23959 » Fixing-issues-form-load-when-copying-issue-from-a-pr.patch
| 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?
|
||