Skip to content

Commit

Permalink
issue: Prevent issue state check bug
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Sep 27, 2017
1 parent b7aab45 commit a4cd776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/Issue.java
Expand Up @@ -650,7 +650,7 @@ public boolean hasChildIssue(){
}

public boolean hasParentIssue(){
return finder.where()
return parent != null && finder.where()
.isNotNull("parent.id")
.findRowCount() > 0;
}
Expand Down

0 comments on commit a4cd776

Please sign in to comment.