Skip to content
Snippets Groups Projects
Commit e6a1ea72 authored by gakin's avatar gakin
Browse files

SSDM-4593 OpenbisSync: Handle property types of type Material of Any type

SVN: 37589
parent 5947450b
No related branches found
No related tags found
No related merge requests found
...@@ -142,10 +142,16 @@ public class MasterDataExtractor ...@@ -142,10 +142,16 @@ public class MasterDataExtractor
{ {
propertyTypeElement.setAttribute("vocabulary", propertyTypeImmutable.getVocabulary().getCode()); propertyTypeElement.setAttribute("vocabulary", propertyTypeImmutable.getVocabulary().getCode());
} }
else if (propertyTypeImmutable.getDataType().name().equals(DataType.MATERIAL.name()) else if (propertyTypeImmutable.getDataType().name().equals(DataType.MATERIAL.name())) {
&& propertyTypeImmutable.getMaterialType() != null) if (propertyTypeImmutable.getMaterialType() != null)
{ {
propertyTypeElement.setAttribute("material", propertyTypeImmutable.getMaterialType().getCode()); propertyTypeElement.setAttribute("material", propertyTypeImmutable.getMaterialType().getCode());
}
else
{
// for properties like "inhibitor_of" where it is of Material of Any Type
propertyTypeElement.setAttribute("material", "");
}
} }
propertyTypesElement.appendChild(propertyTypeElement); propertyTypesElement.appendChild(propertyTypeElement);
} }
......
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