Skip to content

Commit

Permalink
slight updates to fix #58 #59
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohit.Kumar committed Apr 18, 2019
1 parent df3e61c commit 6ef12ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions WebContent/table.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ pageEncoding="UTF-8"

<td class="cell-table table-cell-merge"><%=mergeCheckboxHTML%></td>

<!-- need word-wrap: break-all to break very long names -->
<td style="min-width:300px;word-wrap:break-all" class="cell-table table-cell-name"><a href="<%=href%>" title="<%=hoverText%>" target="_blank"><%=Util.escapeHTML(row.get(Config.MERGE_FIELD).toUpperCase())%></a></td>
<!-- need word-break: break-all to break very long names -->
<td style="min-width:300px;word-break:break-all" class="cell-table table-cell-name"><a href="<%=href%>" title="<%=hoverText%>" target="_blank"><%=Util.escapeHTML(row.get(Config.MERGE_FIELD).toUpperCase())%></a></td>
<%-- <td class="cell-table table-cell-constituency"><a href="<%=pc_href%>" title="<%=pcInfo%>" target="_blank"><%=Util.escapeHTML(row.get("Constituency_Name").toUpperCase())%></a></td> --%>

<%
Expand Down
2 changes: 1 addition & 1 deletion src/in/edu/ashoka/surf/MergeManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ private List<List<List<Row>>> applyFilter (Filter filter, GroupViewControl gvc,
}
case GROUPS_WITH_ONE_OR_MORE_ROWS_AND_TWO_OR_MORE_IDS: {
Collection<Row> rowsMatchingFilter = group.stream().filter(filter::passes).collect(Collectors.toList());
Set<String> idsInGroup = group.stream().filter(filter::passes).map(r -> r.get(Config.ID_FIELD)).collect(Collectors.toSet());
Set<String> idsInGroup = group.stream().map(r -> r.get(Config.ID_FIELD)).collect(Collectors.toSet());
groupWillBeShown = (rowsMatchingFilter.size() > 0 && idsInGroup.size() >= 2);
break;
}
Expand Down

0 comments on commit 6ef12ed

Please sign in to comment.