You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by an...@apache.org on 2019/12/24 16:54:11 UTC
[syncope] branch 2_0_X updated: enduser,
please do not check against default values if there isn't any
This is an automated email from the ASF dual-hosted git repository.
andreapatricelli pushed a commit to branch 2_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/2_0_X by this push:
new 7795abb enduser, please do not check against default values if there isn't any
7795abb is described below
commit 7795abb095e827b172c4b6b6330960ab7cf0c151
Author: Andrea Patricelli <an...@apache.org>
AuthorDate: Tue Dec 24 17:53:57 2019 +0100
enduser, please do not check against default values if there isn't any
---
.../main/java/org/apache/syncope/client/enduser/util/Validation.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/enduser/src/main/java/org/apache/syncope/client/enduser/util/Validation.java b/client/enduser/src/main/java/org/apache/syncope/client/enduser/util/Validation.java
index 34abf65..a0e9c19 100644
--- a/client/enduser/src/main/java/org/apache/syncope/client/enduser/util/Validation.java
+++ b/client/enduser/src/main/java/org/apache/syncope/client/enduser/util/Validation.java
@@ -91,7 +91,7 @@ public final class Validation {
}
private static boolean isValid(final AttrTO attrTO, final CustomAttribute customAttribute) {
- return customAttribute.isReadonly()
+ return customAttribute.isReadonly() && !customAttribute.getDefaultValues().isEmpty()
? IterableUtils.matchesAll(attrTO.getValues(), new Predicate<String>() {
@Override