This is an automated email from the ASF dual-hosted git repository.

ilgrosso pushed a commit to branch 4_1_X
in repository https://gitbox.apache.org/repos/asf/syncope.git


The following commit(s) were added to refs/heads/4_1_X by this push:
     new 45b260e00e [SYNCOPE-1959] solved group relationship management error 
in console (#1338)
45b260e00e is described below

commit 45b260e00ed3a88629ae7a5a345d7a021aa0f0c8
Author: Andrea Patricelli <[email protected]>
AuthorDate: Fri Apr 3 20:23:07 2026 +0200

    [SYNCOPE-1959] solved group relationship management error in console (#1338)
---
 .../java/org/apache/syncope/client/console/wizards/any/PlainAttrs.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/PlainAttrs.java
 
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/PlainAttrs.java
index bbfb9b0f3d..81b676c28c 100644
--- 
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/PlainAttrs.java
+++ 
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/PlainAttrs.java
@@ -37,6 +37,7 @@ import org.apache.syncope.common.lib.to.GroupTO;
 import org.apache.syncope.common.lib.to.GroupableRelatableTO;
 import org.apache.syncope.common.lib.to.MembershipTO;
 import org.apache.syncope.common.lib.to.PlainSchemaTO;
+import org.apache.syncope.common.lib.to.RelatableTO;
 import org.apache.syncope.common.lib.to.RelationshipTO;
 import org.apache.syncope.common.lib.to.UserTO;
 import org.apache.syncope.common.lib.types.AttrSchemaType;
@@ -229,7 +230,7 @@ public class PlainAttrs extends 
AbstractAttrs<PlainSchemaTO> {
 
     @Override
     protected void setAttrs(final RelationshipTO relationshipTO) {
-        Map<String, Attr> attrMap = 
GroupableRelatableTO.class.cast(attributable).
+        Map<String, Attr> attrMap = RelatableTO.class.cast(attributable).
                 getRelationship(relationshipTO.getType(), 
relationshipTO.getOtherEndKey()).
                 map(gr -> EntityTOUtils.buildAttrMap(gr.getPlainAttrs())).
                 orElseGet(HashMap::new);

Reply via email to