Skip to content

Commit

Permalink
issue: Prevent displaying duplicates when selecting parent issues
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Mar 23, 2017
1 parent a76238f commit a8ac4ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/issue/partial_select_subtask.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
}
}
@for(issue <- Issue.findByProject(project, "", 1).filter(issue => issue.id != currentIssueId)) {
@if(issue.parent == null && !hasChildIssue) {
<option value="@issue.id" @if(issue.id == parentIssueId) {selected}>#@issue.getNumber. @issue.title </option>
@if(issue.parent == null && !hasChildIssue && issue.id != parentIssueId) {
<option value="@issue.id">#@issue.getNumber. @issue.title </option>
}
}
</select>
Expand Down

0 comments on commit a8ac4ca

Please sign in to comment.