diff --git a/src/main/java/edu/harvard/iq/dataverse/EditDatafilesPage.java b/src/main/java/edu/harvard/iq/dataverse/EditDatafilesPage.java index 600e4679538..ebb0dddd524 100644 --- a/src/main/java/edu/harvard/iq/dataverse/EditDatafilesPage.java +++ b/src/main/java/edu/harvard/iq/dataverse/EditDatafilesPage.java @@ -1781,7 +1781,6 @@ public void handleFileUpload(FileUploadEvent event) throws IOException { RequestContext context = RequestContext.getCurrentInstance(); RequestContext.getCurrentInstance().update("datasetForm:fileTypeDifferentPopup"); context.execute("PF('fileTypeDifferentPopup').show();"); - context.execute("PF('fileTypeDifferentPopup').show();"); } return; diff --git a/src/main/webapp/file.xhtml b/src/main/webapp/file.xhtml index d724947ee64..a462b10e843 100644 --- a/src/main/webapp/file.xhtml +++ b/src/main/webapp/file.xhtml @@ -275,7 +275,7 @@ and !(dataFileServiceBean.hasReplacement(FilePage.fileMetadata.dataFile) or dataFileServiceBean.hasBeenDeleted(FilePage.fileMetadata.dataFile))}"> #{bundle['file.dataFilesTab.metadata.addBtn']} -