src/main/webapp/WEB-INF/jsp/issue-form.jsp

changeset 311
bf67e0ff7131
parent 305
26e7f895f0f8
child 335
1eed60b779da
--- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Mon Aug 05 17:41:56 2024 +0200
+++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Mon Aug 05 18:40:47 2024 +0200
@@ -32,7 +32,10 @@
 
 <c:set var="issue" scope="page" value="${viewmodel.issue}" />
 <c:set var="project" scope="page" value="${viewmodel.project}"/>
-<c:set var="issuesHref" value="./${viewmodel.pathInfos.issuesHref}"/>
+<c:set var="issuesHref" value="./issues/"/>
+<c:if test="${not empty viewmodel.pathInfos}">
+    <c:set var="issuesHref" value="./${viewmodel.pathInfos.issuesHref}"/>
+</c:if>
 
 <form action="${issuesHref}-/commit" method="post">
     <input type="hidden" name="project" value="${issue.project.id}" />
@@ -160,9 +163,11 @@
         <tfoot>
         <tr>
             <td colspan="2">
+                <input type="hidden" name="id" value="${issue.id}"/>
+                <c:if test="${not empty viewmodel.pathInfos}">
                 <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>
                 <c:if test="${issue.id ge 0}">
                 <a href="${issuesHref}${issue.id}" class="button">
                     <fmt:message key="button.cancel"/>

mercurial