Sun, 06 Oct 2024 18:25:16 +0200
fix "more" checkbox not staying checked (for real now) - fixes #417
src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt | file | annotate | diff | comparison | revisions |
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sun Oct 06 18:04:14 2024 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sun Oct 06 18:25:16 2024 +0200 @@ -357,6 +357,11 @@ } } + // test if we are multi-creating issues + if (http.param("more") != null) { + http.request.setAttribute("more", true) + } + with(http) { view = IssueEditView( issue, @@ -402,8 +407,7 @@ } if (http.param("more") != null) { - http.request.setAttribute("more", true) - http.renderCommit("${issuesHref}-/create") + http.renderCommit("${issuesHref}-/create?more=true") } else if (http.param("save") != null) { http.renderCommit("${issuesHref}${openId}") } else {