Defect #21168 ยป 0001-fix-for-sub-project-save-error.patch
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 |