diff options
author | Abyss777 <abyss@fox5.ru> | 2016-10-19 18:35:28 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-10-19 18:35:28 +0500 |
commit | 17f5a899a08b992507b574eeb4047b1f6bfa8629 (patch) | |
tree | 38044c918384b21e9533452d6a408f0935c96a1e /src/org/traccar/reports/Trips.java | |
parent | c613143105d9f7c898dd3fb236d683b76cf8a42c (diff) | |
download | trackermap-server-17f5a899a08b992507b574eeb4047b1f6bfa8629.tar.gz trackermap-server-17f5a899a08b992507b574eeb4047b1f6bfa8629.tar.bz2 trackermap-server-17f5a899a08b992507b574eeb4047b1f6bfa8629.zip |
- Filter events on server side
- Use common path for templates
- Filter events about geofences that user do not have access (minor security fix)
- Removed unused function
- Visual templates improvements
Diffstat (limited to 'src/org/traccar/reports/Trips.java')
-rw-r--r-- | src/org/traccar/reports/Trips.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/reports/Trips.java b/src/org/traccar/reports/Trips.java index c912dc651..27863d877 100644 --- a/src/org/traccar/reports/Trips.java +++ b/src/org/traccar/reports/Trips.java @@ -202,9 +202,9 @@ public final class Trips { devicesTrips.add(deviceTrips); } } - String templatePath = Context.getConfig().getString("report.trips.template.excel", - "templates/export/trips.xlsx"); - try (InputStream inputStream = new FileInputStream(templatePath)) { + String templatePath = Context.getConfig().getString("report.templatesPath", + "templates/export/"); + try (InputStream inputStream = new FileInputStream(templatePath + "/trips.xlsx")) { org.jxls.common.Context jxlsContext = PoiTransformer.createInitialContext(); jxlsContext.putVar("devices", devicesTrips); jxlsContext.putVar("sheetNames", sheetNames); |