Sun, 04 Apr 2021 11:52:30 +0200
re-enables the "create another" feature
--- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Fri Apr 02 11:59:14 2021 +0200 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt Sun Apr 04 11:52:30 2021 +0200 @@ -516,7 +516,11 @@ .mapNotNull { param -> param.toIntOrNull()?.let { Version(it, projectInfo.project.id) } } } - http.renderCommit("${issuesHref}${issue.id}") + if (http.param("more").toBoolean()) { + http.renderCommit("${issuesHref}-/create") + } else { + http.renderCommit("${issuesHref}${issue.id}") + } } } } \ No newline at end of file
--- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp Fri Apr 02 11:59:14 2021 +0200 +++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp Sun Apr 04 11:52:30 2021 +0200 @@ -180,8 +180,8 @@ <tfoot> <tr> <td colspan="2"> - <input type="checkbox" id="create-another" name="create-another" <c:if test="${more}">checked</c:if> /> - <label for="create-another"><fmt:message key="button.issue.create.another"/> </label> + <input type="checkbox" id="more" name="more" <c:if test="${more}">checked</c:if> /> + <label for="more"><fmt:message key="button.issue.create.another"/> </label> <input type="hidden" name="id" value="${issue.id}"/> <c:if test="${issue.id ge 0}"> <a href="${issuesHref}${issue.id}" class="button">