Skip to content
Snippets Groups Projects
Commit fc606563 authored by buczekp's avatar buczekp
Browse files

[LMS-1858] fix handling material properties

SVN: 18835
parent 8865c8db
No related branches found
No related tags found
No related merge requests found
......@@ -21,9 +21,11 @@ import java.util.HashMap;
import java.util.Map;
import ch.systemsx.cisd.openbis.generic.server.dataaccess.db.dynamic_property.IDynamicPropertyEvaluator;
import ch.systemsx.cisd.openbis.generic.shared.basic.dto.MaterialIdentifier;
import ch.systemsx.cisd.openbis.generic.shared.dto.EntityPropertyPE;
import ch.systemsx.cisd.openbis.generic.shared.dto.EntityTypePropertyTypePE;
import ch.systemsx.cisd.openbis.generic.shared.dto.IEntityPropertiesHolder;
import ch.systemsx.cisd.openbis.generic.shared.dto.MaterialPE;
import ch.systemsx.cisd.openbis.generic.shared.dto.PropertyTypePE;
/**
......@@ -59,7 +61,10 @@ public class AbstractEntityAdaptor implements IEntityAdaptor
final String value;
if (property.getMaterialValue() != null)
{
value = property.getMaterialValue().getCode();
final MaterialPE material = property.getMaterialValue();
value =
MaterialIdentifier.print(material.getCode(), material.getEntityType()
.getCode());
} else if (property.getVocabularyTerm() != null)
{
value = property.getVocabularyTerm().getCode();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment