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

changeset 78
bb4c52bf3439
parent 76
82f71fb1758a
child 81
1a2e7b5d48f7
--- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sat May 23 13:34:41 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Sat May 23 13:52:04 2020 +0200
@@ -25,19 +25,16 @@
 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 --%>
 <%@page pageEncoding="UTF-8" %>
-<%@page import="de.uapcore.lightpit.Constants" %>
 <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
 
-<c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
-
 <jsp:useBean id="projects" type="java.util.List<de.uapcore.lightpit.entities.Project>" scope="request" />
 <jsp:useBean id="issue" type="de.uapcore.lightpit.entities.Issue" scope="request"/>
 <jsp:useBean id="issueStatusEnum" type="de.uapcore.lightpit.entities.IssueStatus[]" scope="request"/>
 <jsp:useBean id="issueCategoryEnum" type="de.uapcore.lightpit.entities.IssueCategory[]" scope="request"/>
 <jsp:useBean id="users" type="java.util.List<de.uapcore.lightpit.entities.User>" scope="request"/>
 
-<form action="./${moduleInfo.modulePath}/issues/commit" method="post">
+<form action="./projects/issues/commit" method="post">
     <table class="formtable">
         <colgroup>
             <col>
@@ -165,10 +162,10 @@
                 <input type="hidden" name="id" value="${issue.id}"/>
                 <c:choose>
                     <c:when test="${not empty issue.project and issue.project.id ge 0}">
-                        <c:set var="cancelUrl">./${moduleInfo.modulePath}/view?pid=${issue.project.id}</c:set>
+                        <c:set var="cancelUrl">./projects/view?pid=${issue.project.id}</c:set>
                     </c:when>
                     <c:otherwise>
-                        <c:set var="cancelUrl">./${moduleInfo.modulePath}/</c:set>
+                        <c:set var="cancelUrl">./projects/</c:set>
                     </c:otherwise>
                 </c:choose>
                 <a href="${cancelUrl}" class="button">

mercurial