Skip to content

Commit 2a939ff

Browse files
committed
Improved the detection of incomplete metadata when saving a dataset in UI (JSF)
1 parent 6d4e043 commit 2a939ff

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/java/edu/harvard/iq/dataverse/DatasetPage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3981,8 +3981,7 @@ public String save() {
39813981
dataset.setOwner(ownerId != null ? dataverseService.find(ownerId) : null);
39823982
}
39833983
// Validate
3984-
Set<ConstraintViolation> constraintViolations = workingVersion.validate();
3985-
if (!constraintViolations.isEmpty()) {
3984+
if (!workingVersion.isValid()) {
39863985
FacesContext.getCurrentInstance().validationFailed();
39873986
return "";
39883987
}

0 commit comments

Comments
 (0)