Author: andreapatricelli Date: Tue Jun 3 15:25:35 2014 New Revision: 1599602
URL: http://svn.apache.org/r1599602 Log: Properly managed case in which NONE mapping(s) of resource is(are) requested from AttributeUtil Modified: syncope/trunk/core/src/main/java/org/apache/syncope/core/util/AttributableUtil.java Modified: syncope/trunk/core/src/main/java/org/apache/syncope/core/util/AttributableUtil.java URL: http://svn.apache.org/viewvc/syncope/trunk/core/src/main/java/org/apache/syncope/core/util/AttributableUtil.java?rev=1599602&r1=1599601&r2=1599602&view=diff ============================================================================== --- syncope/trunk/core/src/main/java/org/apache/syncope/core/util/AttributableUtil.java (original) +++ syncope/trunk/core/src/main/java/org/apache/syncope/core/util/AttributableUtil.java Tue Jun 3 15:25:35 2014 @@ -258,8 +258,13 @@ public final class AttributableUtil { break; case NONE: + for (T item : items) { + if (MappingPurpose.NONE == item.getPurpose()) { + result.add(item); + } + } + break; default: - result.addAll(items); } return result;
