--- a/src/main/webapp/WEB-INF/jsp/version-form.jsp Sat May 30 15:28:27 2020 +0200 +++ b/src/main/webapp/WEB-INF/jsp/version-form.jsp Sat May 30 18:05:06 2020 +0200 @@ -47,13 +47,19 @@ <tr> <th><fmt:message key="version.project"/></th> <td> - <select name="pid" required> - <c:forEach var="project" items="${projects}"> - <option value="${project.id}" <c:if test="${project eq version.project}">selected</c:if> > - <c:out value="${project.name}" /> - </option> - </c:forEach> - </select> + <c:if test="${version.project.id ge 0}"> + <c:out value="${version.project.name}" /> + <input type="hidden" name="pid" value="${version.project.id}" /> + </c:if> + <c:if test="${empty version.project or version.project.id lt 0}"> + <select name="pid" required> + <c:forEach var="project" items="${projects}"> + <option value="${project.id}"> + <c:out value="${project.name}" /> + </option> + </c:forEach> + </select> + </c:if> </td> </tr> <tr>