# HG changeset patch
# User Mike Becker <universe@uap-core.de>
# Date 1728231916 -7200
# Node ID aa16d9a48515cc5768ea383a6f3f5df82365c9fa
# Parent  fa7696bafe0d6ca3a5b43fff05dff4654532d7c4
fix "more" checkbox not staying checked (for real now) - fixes #417

diff -r fa7696bafe0d -r aa16d9a48515 src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt
--- 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 {