Skip to content

Commit

Permalink
create query for object collection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Apr 21, 2023
1 parent 5752527 commit e4ba3af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/
package com.evolveum.midpoint.gui.impl.factory.panel;

import com.evolveum.midpoint.prism.PrismContext;
import com.evolveum.midpoint.util.exception.ConfigurationException;
import com.evolveum.midpoint.util.exception.SchemaException;

Expand Down Expand Up @@ -52,7 +53,8 @@ public String getObject() {
}
if (useParsing) {
ObjectFilter objectFilter = getPageBase().getQueryConverter().createObjectFilter(filterTypeModel.getObject(), value);
PrismQuerySerialization serialization = getPageBase().getPrismContext().querySerializer().serialize(objectFilter);
PrismQuerySerialization serialization = getPageBase().getPrismContext().querySerializer().serialize(objectFilter,
PrismContext.get().getSchemaRegistry().staticNamespaceContext());
if (serialization != null) {
return serialization.filterText();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ public void setPropertyPath(ItemPath propertyPath) {
}

public void setValue(Object value) {
if (propertyDef.getTypeClass().equals(PolyString.class)) {
this.value = new PolyString((String) value);
return;
}
this.value = value;
}

Expand Down

0 comments on commit e4ba3af

Please sign in to comment.