Skip to content

Commit

Permalink
fix MID-5174 (display names generation)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Apr 9, 2019
1 parent 0c20ef1 commit 57ebe9d
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -235,6 +235,12 @@ static String getDisplayNameFromItem(Item item) {
PrismValue val = item.getParent();
if (val != null && val.getTypeName() != null) {
displayName = val.getTypeName().getLocalPart() + "." + displayName;
//try to localize display name with newly built key
//if no localized value if found, just take the name
String localizedDisplayName = localizeName(displayName);
if (StringUtils.isEmpty(localizedDisplayName) || localizedDisplayName.equals(displayName)){
displayName = name.getLocalPart();
}
}
} else {
displayName = item.getDefinition().getTypeName().getLocalPart();
Expand Down

0 comments on commit 57ebe9d

Please sign in to comment.