Project

General

Profile

Defect #21168 ยป 0001-fix-for-sub-project-save-error.patch

Rupesh J, 2015-11-06 11:40

View differences:

app/models/project.rb
385 385
    if user.allowed_to?(:add_project, nil, :global => true) || (!new_record? && parent.nil?)
386 386
      @allowed_parents << nil
387 387
    end
388
    unless parent.nil? || @allowed_parents.empty? || @allowed_parents.include?(parent)
389
      @allowed_parents << parent
388
    unless parent.nil?
389
      @allowed_parents << parent if !@allowed_parents.include?(parent)
390 390
    end
391 391
    @allowed_parents
392 392
  end
    (1-1/1)