Skip to content

Commit

Permalink
subtask: Change method of subtask list size limit
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Apr 24, 2017
1 parent 92b3c2c commit 5697cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/Issue.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ public static List<Issue> findByProject(Project project, String filter, int limi
if(StringUtils.isNotEmpty(filter)){
el.icontains("title", filter);
}
return el.setMaxRows(100).order().desc("createdDate").findList();
return el.setMaxRows(limit).order().desc("createdDate").findList();
}

public static Page<Issue> findIssuesByState(int size, int pageNum, State state) {
Expand Down
2 changes: 1 addition & 1 deletion app/views/issue/partial_select_subtask.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<option value="@issue.id" selected>#@issue.getNumber. @issue.title</option>
}
}
@for(issue <- Issue.findByProject(project, "", 1).filter(issue => issue.id != currentIssueId)) {
@for(issue <- Issue.findByProject(project, "", 100).filter(issue => issue.id != currentIssueId)) {
@if(issue.parent == null && !hasChildIssue && issue.id != parentIssueId) {
<option value="@issue.id">#@issue.getNumber. @issue.title </option>
}
Expand Down

0 comments on commit 5697cef

Please sign in to comment.