Skip to content

Commit

Permalink
Add Driver column to Trip report template
Browse files Browse the repository at this point in the history
  • Loading branch information
Abyss777 committed Jul 13, 2017
1 parent e776aa3 commit 48fee3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/org/traccar/reports/ReportUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ public static String findDriver(Position firstPosition, Position lastPosition) {
public static String findDriverName(String driverUniqueId) {
if (driverUniqueId != null && Context.getDriversManager() != null) {
Driver driver = Context.getDriversManager().getDriverByUniqueId(driverUniqueId);
return driver != null ? driver.getName() : driverUniqueId;
if (driver != null) {
return driver.getName();
}
}
return null;
}
Expand Down
Binary file modified templates/export/trips.xlsx
Binary file not shown.

0 comments on commit 48fee3a

Please sign in to comment.