Skip to content

Commit

Permalink
Use schema provided by panel for collumn headers
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
  • Loading branch information
tonydamage committed Sep 28, 2022
1 parent 1be4390 commit 7fdf97f
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -1224,8 +1224,7 @@ private boolean shouldIncludeDefaultColumns() {
}

private String getItemDisplayName(GuiObjectColumnType column) {
ItemDefinition itemDefinition = getPageBase().getPrismContext().getSchemaRegistry()
.findContainerDefinitionByCompileTimeClass(getType()).findItemDefinition(column.getPath().getItemPath());
ItemDefinition itemDefinition = getContainerDefinitionForColumns().findItemDefinition(column.getPath().getItemPath());
return itemDefinition == null ? "" : itemDefinition.getDisplayName();
}

Expand Down

0 comments on commit 7fdf97f

Please sign in to comment.