Tue, 11 May 2021 17:36:00 +0200
fixes #134 - automatic version selection
src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt | file | annotate | diff | comparison | revisions |
1.1 --- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Tue May 11 17:30:36 2021 +0200 1.2 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Tue May 11 17:36:00 2021 +0200 1.3 @@ -447,6 +447,15 @@ 1.4 // pre-select component, if available in the path info 1.5 issue.component = component 1.6 1.7 + // pre-select version, if available in the path info 1.8 + if (version != null) { 1.9 + if (version.status.isReleased) { 1.10 + issue.affectedVersions = listOf(version) 1.11 + } else { 1.12 + issue.resolvedVersions = listOf(version) 1.13 + } 1.14 + } 1.15 + 1.16 with(http) { 1.17 view = IssueEditView( 1.18 issue,