Skip to content

Commit

Permalink
MID-7677 assignment/extension items are now visible/editable
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Mar 17, 2022
1 parent 323130f commit 52935d7
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,20 @@ protected boolean getContainerReadability(ItemWrapper<?, ?> wrapper) {

private ItemVisibility getContainerVisibility(ItemWrapper<?, ?> wrapper) {
if (wrapper instanceof PrismContainerWrapper) {
if (((PrismContainerWrapper) wrapper).isVirtual()) {
PrismContainerWrapper pcw = (PrismContainerWrapper) wrapper;
if (pcw.isVirtual()) {
return ItemVisibility.AUTO;
}

ItemPath path = pcw.getPath();
if (path != null ) {
path = path.namedSegmentsOnly();

if (path.startsWith(ItemPath.create(AssignmentHolderType.F_ASSIGNMENT, AssignmentType.F_EXTENSION))) {
return ItemVisibility.AUTO;
}
}

return ItemVisibility.HIDDEN;
}
return ItemVisibility.AUTO;
Expand Down

0 comments on commit 52935d7

Please sign in to comment.