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

changeset 128
947d0f6a6a83
parent 109
2e0669e814ff
child 131
67df332e3146
--- a/src/main/webapp/WEB-INF/jsp/version-form.jsp	Thu Oct 15 12:27:05 2020 +0200
+++ b/src/main/webapp/WEB-INF/jsp/version-form.jsp	Thu Oct 15 13:31:52 2020 +0200
@@ -30,6 +30,7 @@
 
 <jsp:useBean id="viewmodel" type="de.uapcore.lightpit.viewmodel.VersionEditView" scope="request" />
 <c:set var="version" scope="page" value="${viewmodel.version}"/>
+<c:set var="project" scope="page" value="${viewmodel.projectInfo.project}"/>
 
 <form action="./projects/versions/commit" method="post">
     <table class="formtable" style="width: 35ch">
@@ -41,8 +42,8 @@
         <tr>
             <th><fmt:message key="version.project"/></th>
             <td>
-                <c:out value="${version.project.name}" />
-                <input type="hidden" name="pid" value="${version.project.id}" />
+                <c:out value="${project.name}" />
+                <input type="hidden" name="pid" value="${project.id}" />
             </td>
         </tr>
         <tr>
@@ -72,7 +73,7 @@
         <tr>
             <td colspan="2">
                 <input type="hidden" name="id" value="${version.id}"/>
-                <a href="./projects/versions?pid=${version.project.id}" class="button">
+                <a href="./projects/versions?pid=${project.id}" class="button">
                     <fmt:message bundle="${lightpit_bundle}" key="button.cancel"/>
                 </a>
                 <button type="submit"><fmt:message bundle="${lightpit_bundle}" key="button.okay"/></button>

mercurial