Defect #33419
Show only valid projects on issue form when the issue is a subtask
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Issues | |||
Target version: | 4.2.0 | |||
Resolution: | Fixed | Affected version: |
Description
In r10587 were introduced cross project subtasks, you can select project of subtask based on system setting.
In r17217 were introduced selection project and its subprojects on new issue form. Basically it shows on new issue form subprojects without taking into account setting for cross-project subtasks. So, even though subtask may have any project form will show only current project and its subprojects or vice versa subtasks' project is disabled and nevertheless form will show subprojects.
Related patch fixes this behaviour. New issue form will show projects based on system setting if parent_issue_id field is present so user can't select inappropriate project.
Associated revisions
Show only valid projects on issue form when the issue is a subtask (#33419).
Patch by Marius BALTEANU.
History
#3
Updated by Marius BALTEANU about 1 month ago
- Assignee set to Marius BALTEANU
#4
Updated by Marius BALTEANU 25 days ago
- File 0001-Take-into-account-the-setting-Setting.cross_project_.patch
added
- Subject changed from Subtasks' project on new issue form to Show only valid projects on issue form when the issue is a subtask
- Assignee deleted (
Marius BALTEANU)
I made a patch (inspired from Dmitry's work) that implements this feature.
The patch also changes my initial implementation (r17217) in order to move the logic from model to issue helper.