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
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.blank? || !@issue.project.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?
(2-2/2)