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

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


The following commit(s) were added to refs/heads/master by this push:
     new 9110a728e5 Fixing attr display when no schemas are defined
9110a728e5 is described below

commit 9110a728e5ba1a5ecc897f1cf0afcd4ce713cfb2
Author: Francesco Chicchiriccò <[email protected]>
AuthorDate: Mon Jun 19 16:17:45 2023 +0200

    Fixing attr display when no schemas are defined
---
 .../syncope/client/console/wizards/any/AbstractAttrsWizardStep.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AbstractAttrsWizardStep.java
 
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AbstractAttrsWizardStep.java
index d08a24c642..5eae3eb665 100644
--- 
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AbstractAttrsWizardStep.java
+++ 
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/wizards/any/AbstractAttrsWizardStep.java
@@ -142,7 +142,7 @@ public abstract class AbstractAttrsWizardStep<S extends 
SchemaTO> extends Wizard
 
         scs.clear();
 
-        if (reoderSchemas()) {
+        if (!allSchemas.isEmpty() && reoderSchemas()) {
             // remove attributes not selected for display
             allSchemas.removeAll(allSchemas.stream().
                     filter(schemaTO -> 
!whichAttrs.contains(schemaTO.getKey())).collect(Collectors.toSet()));

Reply via email to