fix "more" checkbox not staying checked (for real now) - fixes #417

Sun, 06 Oct 2024 18:25:16 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 06 Oct 2024 18:25:16 +0200
changeset 330
aa16d9a48515
parent 329
fa7696bafe0d
child 331
78a84c344efb

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 {

mercurial