Skip to content

Commit

Permalink
Merged in DSC-1198 (pull request DSpace#1046)
Browse files Browse the repository at this point in the history
[DSC-1198] add check to prevent empty metadata values with no authority from creating related entities

Approved-by: Stefano Maffei
  • Loading branch information
Maxgames17 authored and steph-ieffam committed Oct 30, 2023
2 parents 1a9294a + 9d9b365 commit 944ee2f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ private boolean isMetadataSkippable(MetadataValue metadata) {
return true;
}

if (isBlank(authority) && isMetadataWithEmptyAuthoritySkippable(metadata)) {
if (isBlank(authority) && (isBlank(metadata.getValue()) || isMetadataWithEmptyAuthoritySkippable(metadata))) {
return true;
}

Expand Down

0 comments on commit 944ee2f

Please sign in to comment.