From 58211b3a2425bb4ac06813c094715d202c81bfa1 Mon Sep 17 00:00:00 2001 From: jcardus Date: Fri, 23 Apr 2021 16:52:40 +0100 Subject: Update CopyAttributesHandler.java Why are we forcing KEY_DRIVER_UNIQUE_ID on copyAttributes? Also, if exists why should it be duplicated? --- src/main/java/org/traccar/handler/CopyAttributesHandler.java | 5 ----- 1 file changed, 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("[ ,]")) { -- cgit v1.2.3