Skip to content

Commit

Permalink
Lowercase comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Feb 2, 2016
1 parent eb66444 commit a7e4078
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/sf/jabref/gui/entryeditor/EntryEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ private void setupFieldPanels() {
}

// other fields
List<String> displayedFields = Stream.concat(requiredFields.stream(), displayedOptionalFields.stream()).collect(Collectors.toList());
List<String> otherFields = this.entry.getFieldNames().stream().filter(f -> !displayedFields.contains(f)).collect(Collectors.toList());
List<String> displayedFields = Stream.concat(requiredFields.stream(), displayedOptionalFields.stream()).map(String::toLowerCase).collect(Collectors.toList());
List<String> otherFields = this.entry.getFieldNames().stream().map(String::toLowerCase).filter(f -> !displayedFields.contains(f)).collect(Collectors.toList());
otherFields.remove("bibtexkey");

if(!otherFields.isEmpty()) {
Expand Down

0 comments on commit a7e4078

Please sign in to comment.