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

changeset 227
f0ede8046b59
parent 214
69647ddb57f2
child 231
dcb1d5a7ea3a
--- a/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Wed Aug 18 15:04:59 2021 +0200
+++ b/src/main/webapp/WEB-INF/jsp/issue-form.jsp	Wed Aug 18 15:30:49 2021 +0200
@@ -57,9 +57,12 @@
                 <select id="issue-component" name="component">
                     <option value="-1"><fmt:message key="placeholder.null-component"/></option>
                     <c:forEach var="comp" items="${viewmodel.components}">
+                        <c:set var="isSelectedComponent" value="${not empty issue.component and comp eq issue.component}" scope="page"/>
+                        <c:if test="${isSelectedComponent or comp.active}">
                         <option
-                                <c:if test="${not empty issue.component and comp eq issue.component}">selected</c:if>
+                                <c:if test="${isSelectedComponent}">selected</c:if>
                                 value="${comp.id}"><c:out value="${comp.name}"/></option>
+                        </c:if>
                     </c:forEach>
                 </select>
             </td>

mercurial