Skip to content

Commit

Permalink
MID-8934 icon fix for simulation results
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Oct 2, 2023
1 parent 51459d0 commit 3e88dce
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
import com.evolveum.midpoint.gui.api.util.GuiDisplayTypeUtil;
import com.evolveum.midpoint.gui.impl.util.IconAndStylesUtil;

import com.evolveum.midpoint.schema.util.ObjectTypeUtil;

import org.apache.commons.lang3.StringUtils;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.extensions.markup.html.repeater.data.table.IColumn;
Expand Down Expand Up @@ -118,7 +120,14 @@ public static IColumn<SelectableBean<SimulationResultProcessedObjectType>, Strin
protected DisplayType createDisplayType(IModel<SelectableBean<SimulationResultProcessedObjectType>> model) {
SimulationResultProcessedObjectType object = model.getObject().getValue();
ObjectType obj = object.getBefore() != null ? object.getBefore() : object.getAfter();
if (obj == null || obj.asPrismObject() == null) {
if (obj == null) {
return new DisplayType()
.icon(new IconType().cssClass(IconAndStylesUtil.createDefaultColoredIcon(object.getType())));
}
if (obj.asPrismObject() == null) {
obj = ObjectTypeUtil.fix(obj);
}
if (obj.asPrismObject() == null) {
return new DisplayType()
.icon(new IconType().cssClass(IconAndStylesUtil.createDefaultColoredIcon(object.getType())));
}
Expand Down

0 comments on commit 3e88dce

Please sign in to comment.