Skip to content

Commit

Permalink
ref filter search fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Feb 13, 2022
1 parent 73a6c9b commit f9bba7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public ObjectFilter createFilter(PageBase pageBase, VariablesMap variables) {
&& refValue.getObject() == null && refValue.getRelation() == null && refValue.getFilter() == null) {
return null;
}
RefFilter refFilter = (RefFilter) PrismContext.get().queryFor(ObjectType.class)
RefFilter refFilter = (RefFilter) PrismContext.get().queryFor(searchType)
.item(getSearchItem().getPath().getItemPath()).ref(refValue.clone())
.buildFilter();
refFilter.setOidNullAsAny(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -577,17 +577,19 @@ public ObjectTypeSearchItemWrapper getObjectTypeSearchItemWrapper() {
return null;
}

@Override
public String debugDump() {
return debugDump(0);
}

@Override
public String debugDump(int indent) {
StringBuilder sb = new StringBuilder();
DebugUtil.indentDebugDump(sb, indent);
sb.append("Search\n");
//todo implement
DebugUtil.debugDumpWithLabelLn(sb, "advancedQuery", advancedQuery, indent + 1);
DebugUtil.dumpObjectSizeEstimate(sb, "advancedQuery", advancedQuery, indent + 2);
DebugUtil.debugDumpWithLabelLn(sb, "advancedError", advancedError, indent + 1);
DebugUtil.debugDumpWithLabelLn(sb, "type", getTypeClass(), indent + 1);
// DebugUtil.dumpObjectSizeEstimate(sb, "allDefinitions", allDefinitions, indent + 2);
// DebugUtil.dumpObjectSizeEstimate(sb, "availableDefinitions", availableDefinitions, indent + 2);
DebugUtil.debugDumpWithLabelLn(sb, "objectCollectionSpecialItems", objectCollectionSearchItem, indent + 1);
DebugUtil.dumpObjectSizeEstimate(sb, "objectCollectionSpecialItemsSize", objectCollectionSearchItem, indent + 1);
return sb.toString();
}

Expand Down

0 comments on commit f9bba7f

Please sign in to comment.