This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 3_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/3_0_X by this push:
new c50decf66b Fixing attr display when no schemas are defined
c50decf66b is described below
commit c50decf66bb99e8e48033e2788ac3cd6ddd2b40a
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()));