Skip to content

Commit

Permalink
Fixed dataset pg validation error msg format issue with trailing hyph…
Browse files Browse the repository at this point in the history
…en [ref #5717]
  • Loading branch information
mheppler committed Jun 10, 2019
1 parent e43adb6 commit fd05813
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/main/java/edu/harvard/iq/dataverse/DatasetPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -3262,9 +3262,7 @@ public String save() {
// Validate
Set<ConstraintViolation> constraintViolations = workingVersion.validate();
if (!constraintViolations.isEmpty()) {
//JsfHelper.addFlashMessage(BundleUtil.getStringFromBundle("dataset.message.validationError"));
JH.addMessage(FacesMessage.SEVERITY_ERROR, BundleUtil.getStringFromBundle("dataset.message.validationError"));
//FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Validation Error", "See below for details."));
FacesContext.getCurrentInstance().validationFailed();
return "";
}

Expand Down
1 change: 0 additions & 1 deletion src/main/java/propertyFiles/Bundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,6 @@ dataset.message.bulkFileDeleteSuccess=The selected files have been deleted.
datasetVersion.message.deleteSuccess=This dataset draft has been deleted.
datasetVersion.message.deaccessionSuccess=The selected version(s) have been deaccessioned.
dataset.message.deaccessionSuccess=This dataset has been deaccessioned.
dataset.message.validationError=Validation Error - Required fields were missed or there was a validation error. Please scroll down to see details.
dataset.message.publishFailure=The dataset could not be published.
dataset.message.metadataFailure=The metadata could not be updated.
dataset.message.filesFailure=The files could not be updated.
Expand Down

0 comments on commit fd05813

Please sign in to comment.