Merge remote-tracking branch 'community/main' into w2p-71502_deleting-items-with-min-relationship

This commit is contained in:
Ben Bosman
2021-01-15 11:39:07 +01:00
431 changed files with 11667 additions and 15151 deletions

View File

@@ -1333,7 +1333,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)) {