Skip to content

Commit

Permalink
Possible fix for name hint issue with multiple secondary identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
semancik committed Jan 31, 2017
1 parent 682fb53 commit 45e06fa
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -2638,7 +2638,11 @@ private Uid getUid(ObjectClassComplexTypeDefinition objectClass, Collection<? ex
uidValue = ((ResourceAttribute<String>) attr).getValue().getValue();
}
if (objectClass.isSecondaryIdentifier(attr.getElementName())) {
nameValue = ((ResourceAttribute<String>) attr).getValue().getValue();
ResourceAttributeDefinition<?> attrDef = objectClass.findAttributeDefinition(attr.getElementName());
String frameworkAttributeName = attrDef.getFrameworkAttributeName();
if (Name.NAME.equals(frameworkAttributeName)) {
nameValue = ((ResourceAttribute<String>) attr).getValue().getValue();
}
}
}
if (uidValue != null) {
Expand Down

0 comments on commit 45e06fa

Please sign in to comment.