You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2016/11/14 16:25:55 UTC

[33/38] incubator-unomi git commit: UNOMI-59 : Handle update of multivalued property

UNOMI-59 : Handle update of multivalued property


Project: http://git-wip-us.apache.org/repos/asf/incubator-unomi/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-unomi/commit/4c20fa6b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-unomi/tree/4c20fa6b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-unomi/diff/4c20fa6b

Branch: refs/heads/UNOMI-28-ES-2-X-UPGRADE
Commit: 4c20fa6b90da96d02b85f3b030401920983fe266
Parents: d8c63f5
Author: Abdelkader Midani <am...@jahia.com>
Authored: Fri Sep 30 18:15:43 2016 +0200
Committer: Thomas Draier <dr...@apache.org>
Committed: Thu Oct 27 09:45:46 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/unomi/services/services/ProfileServiceImpl.java | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/4c20fa6b/services/src/main/java/org/apache/unomi/services/services/ProfileServiceImpl.java
----------------------------------------------------------------------
diff --git a/services/src/main/java/org/apache/unomi/services/services/ProfileServiceImpl.java b/services/src/main/java/org/apache/unomi/services/services/ProfileServiceImpl.java
index 71fe2fd..9194d16 100644
--- a/services/src/main/java/org/apache/unomi/services/services/ProfileServiceImpl.java
+++ b/services/src/main/java/org/apache/unomi/services/services/ProfileServiceImpl.java
@@ -774,6 +774,7 @@ public class ProfileServiceImpl implements ProfileService, SynchronousBundleList
                     Collection currentCollection = (Collection) target.get(newEntry.getKey());
                     if (currentCollection != null) {
                         if (!currentCollection.containsAll((Collection) newEntry.getValue())) {
+                            currentCollection.clear();
                             changed |= currentCollection.addAll((Collection) newEntry.getValue());
                         }
                     } else {