72348: Fixes so getMetadata returns implicit virtual metadata

This commit is contained in:
Marie Verdonck
2020-08-05 15:16:54 +02:00
parent 1a818b304c
commit 0f069cc14c
3 changed files with 5 additions and 12 deletions

View File

@@ -1339,7 +1339,7 @@ prevent the generation of resource policy entry values with null dspace_object a
if (StringUtils.equals(schema, MetadataSchemaEnum.RELATION.getName()) && !StringUtils.equals(element, "type")) {
List<RelationshipMetadataValue> relationMetadata = relationshipMetadataService
.getRelationshipMetadata(item, false);
.getRelationshipMetadata(item, enableVirtualMetadata);
List<MetadataValue> listToReturn = new LinkedList<>();
for (MetadataValue metadataValue : relationMetadata) {
if (StringUtils.equals(metadataValue.getMetadataField().getElement(), element)) {