laiguoran пре 3 година
родитељ
комит
e2c58e6948
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      app/view/change/apply_modal.ejs

+ 2 - 0
app/view/change/apply_modal.ejs

@@ -43,8 +43,10 @@
                     <select class="form-control form-control-sm" id="project-code">
                         <option></option>
                         <% for (const cp of changeProjectList) { %>
+                        <% if (ctx.helper._.findIndex(changes, { project_code: cp.code }) === -1) { %>
                         <option><%- cp.code %></option>
                         <% } %>
+                        <% } %>
                     </select>
                 </div>
                 <input value="" type="hidden" id="bj-name">