Repository: syncope
Updated Branches:
  refs/heads/master 8b8e9336b -> 05f70d9d1


[SYNCOPE-1352] Group wizard doesn't update the plain attributes


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/05f70d9d
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/05f70d9d
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/05f70d9d

Branch: refs/heads/master
Commit: 05f70d9d1f2b95f103b1ad7b89ed18ee20aab911
Parents: 8b8e933
Author: Marco Di Sabatino Di Diodoro <marco.disabat...@tirasa.net>
Authored: Fri Aug 10 15:45:14 2018 +0200
Committer: Marco Di Sabatino Di Diodoro <marco.disabat...@tirasa.net>
Committed: Fri Aug 10 15:47:36 2018 +0200

----------------------------------------------------------------------
 .../syncope/client/console/wizards/any/AnyObjectWizardBuilder.java  | 1 +
 .../syncope/client/console/wizards/any/GroupWizardBuilder.java      | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/05f70d9d/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java
----------------------------------------------------------------------
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java
index 184de10..8e21f0f 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/AnyObjectWizardBuilder.java
@@ -72,6 +72,7 @@ public class AnyObjectWizardBuilder extends 
AnyWizardBuilder<AnyObjectTO> implem
         if (inner.getKey() == null) {
             result = anyObjectRestClient.create(inner);
         } else {
+            
inner.getPlainAttrs().addAll(cleanEmptyPlainAttrs(inner.getPlainAttrs()));
             AnyObjectPatch patch = AnyOperations.diff(inner, 
getOriginalItem().getInnerObject(), false);
 
             // update just if it is changed

http://git-wip-us.apache.org/repos/asf/syncope/blob/05f70d9d/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java
----------------------------------------------------------------------
diff --git 
a/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java
 
b/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java
index ea4c22e..81c6648 100644
--- 
a/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java
+++ 
b/client/console/src/main/java/org/apache/syncope/client/console/wizards/any/GroupWizardBuilder.java
@@ -91,7 +91,6 @@ public class GroupWizardBuilder extends 
AnyWizardBuilder<GroupTO> implements Gro
         if (inner.getKey() == null) {
             result = groupRestClient.create(inner);
         } else {
-            inner.getPlainAttrs().clear();
             
inner.getPlainAttrs().addAll(cleanEmptyPlainAttrs(inner.getPlainAttrs()));
             GroupPatch patch = AnyOperations.diff(inner, 
getOriginalItem().getInnerObject(), false);
             GroupTO originaObj = getOriginalItem().getInnerObject();

Reply via email to