diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-04-23 09:27:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 09:27:15 -0700 |
commit | 37a44ce928b76ec5768000d8d1b05c4fb9745396 (patch) | |
tree | d86687752c4e372aa09d595027cf66e48841c3a9 /src/main | |
parent | 149c71740105130d19aa55738042bc5be0280429 (diff) | |
parent | 58211b3a2425bb4ac06813c094715d202c81bfa1 (diff) | |
download | trackermap-server-37a44ce928b76ec5768000d8d1b05c4fb9745396.tar.gz trackermap-server-37a44ce928b76ec5768000d8d1b05c4fb9745396.tar.bz2 trackermap-server-37a44ce928b76ec5768000d8d1b05c4fb9745396.zip |
Merge pull request #4668 from jcardus/patch-6
KEY_DRIVER_UNIQUE_ID is hardcoded on copyAttributes
Diffstat (limited to 'src/main')
-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("[ ,]")) { |