445 ) |
445 ) |
446 |
446 |
447 // pre-select component, if available in the path info |
447 // pre-select component, if available in the path info |
448 issue.component = component |
448 issue.component = component |
449 |
449 |
|
450 // pre-select version, if available in the path info |
|
451 if (version != null) { |
|
452 if (version.status.isReleased) { |
|
453 issue.affectedVersions = listOf(version) |
|
454 } else { |
|
455 issue.resolvedVersions = listOf(version) |
|
456 } |
|
457 } |
|
458 |
450 with(http) { |
459 with(http) { |
451 view = IssueEditView( |
460 view = IssueEditView( |
452 issue, |
461 issue, |
453 projectInfo.versions, |
462 projectInfo.versions, |
454 projectInfo.components, |
463 projectInfo.components, |