re-enables the "create another" feature

Sun, 04 Apr 2021 11:52:30 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 04 Apr 2021 11:52:30 +0200
changeset 185
5ec9fcfbdf9c
parent 184
e8eecee6aadf
child 186
05eec764facd

re-enables the "create another" feature

src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt file | annotate | diff | comparison | revisions
src/main/webapp/WEB-INF/jsp/issue-form.jsp file | annotate | diff | comparison | revisions
     1.1 --- a/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Fri Apr 02 11:59:14 2021 +0200
     1.2 +++ b/src/main/kotlin/de/uapcore/lightpit/servlet/ProjectServlet.kt	Sun Apr 04 11:52:30 2021 +0200
     1.3 @@ -516,7 +516,11 @@
     1.4                      .mapNotNull { param -> param.toIntOrNull()?.let { Version(it, projectInfo.project.id) } }
     1.5              }
     1.6  
     1.7 -            http.renderCommit("${issuesHref}${issue.id}")
     1.8 +            if (http.param("more").toBoolean()) {
     1.9 +                http.renderCommit("${issuesHref}-/create")
    1.10 +            } else {
    1.11 +                http.renderCommit("${issuesHref}${issue.id}")
    1.12 +            }
    1.13          }
    1.14      }
    1.15  }
    1.16 \ No newline at end of file
     2.1 --- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Fri Apr 02 11:59:14 2021 +0200
     2.2 +++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sun Apr 04 11:52:30 2021 +0200
     2.3 @@ -180,8 +180,8 @@
     2.4          <tfoot>
     2.5          <tr>
     2.6              <td colspan="2">
     2.7 -                <input type="checkbox" id="create-another" name="create-another" <c:if test="${more}">checked</c:if> />
     2.8 -                <label for="create-another"><fmt:message key="button.issue.create.another"/> </label>
     2.9 +                <input type="checkbox" id="more" name="more" <c:if test="${more}">checked</c:if> />
    2.10 +                <label for="more"><fmt:message key="button.issue.create.another"/> </label>
    2.11                  <input type="hidden" name="id" value="${issue.id}"/>
    2.12                  <c:if test="${issue.id ge 0}">
    2.13                  <a href="${issuesHref}${issue.id}" class="button">

mercurial