aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-04-23 09:27:15 -0700
committerGitHub <noreply@github.com>2021-04-23 09:27:15 -0700
commit37a44ce928b76ec5768000d8d1b05c4fb9745396 (patch)
treed86687752c4e372aa09d595027cf66e48841c3a9
parent149c71740105130d19aa55738042bc5be0280429 (diff)
parent58211b3a2425bb4ac06813c094715d202c81bfa1 (diff)
downloadtraccar-server-37a44ce928b76ec5768000d8d1b05c4fb9745396.tar.gz
traccar-server-37a44ce928b76ec5768000d8d1b05c4fb9745396.tar.bz2
traccar-server-37a44ce928b76ec5768000d8d1b05c4fb9745396.zip
Merge pull request #4668 from jcardus/patch-6
KEY_DRIVER_UNIQUE_ID is hardcoded on copyAttributes
-rw-r--r--src/main/java/org/traccar/handler/CopyAttributesHandler.java5
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("[ ,]")) {