Skip to content

Commit

Permalink
Fix RawType updating (related to MID-5359)
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed May 22, 2019
1 parent fc14be0 commit f1e499b
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -18,6 +18,7 @@

import com.evolveum.midpoint.prism.*;
import com.evolveum.midpoint.prism.path.ItemPath;
import com.evolveum.midpoint.prism.polystring.PolyString;
import com.evolveum.midpoint.prism.xml.XsdTypeMapper;
import com.evolveum.midpoint.prism.xnode.*;
import com.evolveum.midpoint.util.ShortDumpable;
Expand Down Expand Up @@ -148,6 +149,9 @@ private Object storeIfRequested(Object parsedValue, boolean store) {
} else if (parsedValue instanceof Referencable) {
parsed = ((Referencable) parsedValue).asReferenceValue();
xnode = null;
} else if (parsedValue instanceof PolyStringType) {
parsed = prismContext.itemFactory().createPropertyValue(PolyString.toPolyString((PolyStringType) parsedValue)); // hack
xnode = null;
} else if (parsedValue != null) {
parsed = prismContext.itemFactory().createPropertyValue(parsedValue);
xnode = null;
Expand Down

0 comments on commit f1e499b

Please sign in to comment.