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

changeset 311
bf67e0ff7131
parent 292
703591e739f4
child 329
fa7696bafe0d
--- a/src/main/webapp/WEB-INF/jsp/issue-view.jsp	Mon Aug 05 17:41:56 2024 +0200
+++ b/src/main/webapp/WEB-INF/jsp/issue-view.jsp	Mon Aug 05 18:40:47 2024 +0200
@@ -31,10 +31,13 @@
 
 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.IssueDetailView" scope="request"/>
 
-<c:set var="project" scope="page" value="${viewmodel.project}"/>
+<c:set var="project" scope="page" value="${viewmodel.issue.project}"/>
 <c:set var="issue" scope="page" value="${viewmodel.issue}" />
 
-<c:set var="issuesHref" scope="page" 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>
 
 <table class="issue-view fullwidth">
     <colgroup>

mercurial