Patch #32109 » obey-subtask-settings-411.patch
app/models/issue.rb (working copy) | ||
---|---|---|
1516 | 1516 |
# Returns a scope of projects that user can assign the issue to |
1517 | 1517 |
def allowed_target_projects(user=User.current, context=nil) |
1518 | 1518 |
if new_record? && context.is_a?(Project) && !copy? |
1519 |
current_project = context.self_and_descendants |
|
1520 |
elsif new_record? |
|
1521 |
current_project = nil |
|
1522 |
else |
|
1519 |
case Setting.cross_project_subtasks |
|
1520 |
when 'system' |
|
1521 |
current_project = nil |
|
1522 |
when 'tree' |
|
1523 |
current_project = context.root.self_and_descendants |
|
1524 |
when 'hierarchy' |
|
1525 |
current_project = context.hierarchy |
|
1526 |
when 'descendants' |
|
1527 |
current_project = context.self_and_descendants |
|
1528 |
else |
|
1529 |
current_project = nil |
|
1530 |
end |
|
1531 |
else |
|
1523 | 1532 |
current_project = project |
1524 | 1533 |
end |
- « Previous
- 1
- 2
- 3
- Next »