Repository: syncope
Updated Branches:
  refs/heads/2_0_X 2569668a6 -> feebe33c5


[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/feebe33c
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/feebe33c
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/feebe33c

Branch: refs/heads/2_0_X
Commit: feebe33c57d03f0e6c4dc590c2f68fb1907cdb6c
Parents: 2569668
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:45:14 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/feebe33c/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 025998c..4ba73c8 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
@@ -53,6 +53,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/feebe33c/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 1d75f9a..52fd40c 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
@@ -72,7 +72,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