Defect #23959 » Fixing-issues-form-load-when-copying-issue-from-a-pr.patch
| app/controllers/issues_controller.rb | ||
|---|---|---|
| 448 | 448 |
end |
| 449 | 449 |
@issue.project = @project |
| 450 | 450 |
if request.get? |
| 451 |
@issue.project ||= @issue.allowed_target_projects.first |
|
| 451 |
if @issue.project || !@issue.in?(@issue.allowed_target_projects) |
|
| 452 |
@issue.project = @issue.allowed_target_projects.sorted.first |
|
| 453 |
end |
|
| 452 | 454 |
end |
| 453 | 455 |
@issue.author ||= User.current |
| 454 | 456 |
@issue.start_date ||= User.current.today if Setting.default_issue_start_date_to_creation_date? |