Skip to content

Commit

Permalink
fixing handling of displayable values - enum extension attributes (GUI)
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Mar 30, 2015
1 parent 16bc8e0 commit d9d1294
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -18,6 +18,8 @@

import com.evolveum.midpoint.prism.PrismPropertyValue;
import com.evolveum.midpoint.prism.polystring.PolyString;
import com.evolveum.midpoint.util.DisplayableValue;

import org.apache.commons.lang.Validate;

import java.io.Serializable;
Expand Down Expand Up @@ -96,6 +98,9 @@ public void normalize() {
if (poly.getOrig()==null) {
value.setValue((T) new PolyString(""));
}
} else if (value.getValue() instanceof DisplayableValue){
DisplayableValue displayableValue = (DisplayableValue) value.getValue();
value.setValue((T) displayableValue.getValue());
}
}

Expand Down

0 comments on commit d9d1294

Please sign in to comment.