Skip to content

Commit

Permalink
commentRow and commentStaffRow were inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
alphartdev committed Nov 4, 2016
1 parent c8764f0 commit 18d9afa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/fr/Alphart/BAT/Modules/Core/LookupFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -599,15 +599,15 @@ public List<BaseComponent[]> commentRowLookup(final String entity, final List<Co
for(final CommentEntry comm : comments){
msg.append("\n");
if(staffLookup){
msg.append(_("commentRow", new String[]{String.valueOf(comm.getID()),
(comm.getType() == Type.NOTE) ? "&eComment" : "&cWarning", comm.getContent(),
comm.getFormattedDate(), comm.getAuthor()}));
}
else{
msg.append(_("commentStaffRow", new String[]{String.valueOf(comm.getID()),
(comm.getType() == Type.NOTE) ? "&eComment" : "&cWarning",
comm.getEntity(), comm.getContent(), comm.getFormattedDate()}));
}
else{
msg.append(_("commentRow", new String[]{String.valueOf(comm.getID()),
(comm.getType() == Type.NOTE) ? "&eComment" : "&cWarning", comm.getContent(),
comm.getFormattedDate(), comm.getAuthor()}));
}
}

msg.append(lookupFooter.replace("{entity}", entity).replace("{module}", "Comment")
Expand Down

0 comments on commit 18d9afa

Please sign in to comment.