diff options
author | jcardus <asklocation.net@gmail.com> | 2021-04-23 16:52:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 16:52:40 +0100 |
commit | 58211b3a2425bb4ac06813c094715d202c81bfa1 (patch) | |
tree | d86687752c4e372aa09d595027cf66e48841c3a9 /src/main/java/org/traccar/handler/CopyAttributesHandler.java | |
parent | 149c71740105130d19aa55738042bc5be0280429 (diff) | |
download | trackermap-server-58211b3a2425bb4ac06813c094715d202c81bfa1.tar.gz trackermap-server-58211b3a2425bb4ac06813c094715d202c81bfa1.tar.bz2 trackermap-server-58211b3a2425bb4ac06813c094715d202c81bfa1.zip |
Update CopyAttributesHandler.java
Why are we forcing KEY_DRIVER_UNIQUE_ID on copyAttributes?
Also, if exists why should it be duplicated?
Diffstat (limited to 'src/main/java/org/traccar/handler/CopyAttributesHandler.java')
-rw-r--r-- | src/main/java/org/traccar/handler/CopyAttributesHandler.java | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/handler/CopyAttributesHandler.java b/src/main/java/org/traccar/handler/CopyAttributesHandler.java index 3cd7d144d..f386116b0 100644 --- a/src/main/java/org/traccar/handler/CopyAttributesHandler.java +++ b/src/main/java/org/traccar/handler/CopyAttributesHandler.java @@ -34,11 +34,6 @@ public class CopyAttributesHandler extends BaseDataHandler { protected Position handlePosition(Position position) { String attributesString = identityManager.lookupAttributeString( position.getDeviceId(), "processing.copyAttributes", "", false, true); - if (attributesString.isEmpty()) { - attributesString = Position.KEY_DRIVER_UNIQUE_ID; - } else { - attributesString += "," + Position.KEY_DRIVER_UNIQUE_ID; - } Position last = identityManager.getLastPosition(position.getDeviceId()); if (last != null) { for (String attribute : attributesString.split("[ ,]")) { |