Skip to content

Commit

Permalink
fix for MID-7969 500 error when setting custom attribute to the first…
Browse files Browse the repository at this point in the history
… column in ObjectCollectionView
  • Loading branch information
Kateryna Honchar committed Jun 15, 2022
1 parent a1118a7 commit 100faea
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public String getObject() {
return getName(value, selectableBean);
}

Object itemPathPropertyValue = new PropertyModel<>(rowModel, "value." + itemPath).getObject();
return itemPathPropertyValue != null ? itemPathPropertyValue.toString() : "";
com.evolveum.midpoint.prism.Item item = value.asPrismObject().findItem(itemPath);
return item != null ? cellItem.getDefaultModelObjectAsString(item.getRealValue()) : "";

}
};
Expand Down

0 comments on commit 100faea

Please sign in to comment.