Skip to content

Commit

Permalink
Bug fixes: pom.xml: allow compilation on JDK-11, DatasetPage.java: pr…
Browse files Browse the repository at this point in the history
…oper autorefresh after publishing.
  • Loading branch information
bjosel committed Oct 2, 2023
1 parent 7ce4492 commit 24a807e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
<dependency>
<groupId>org.dataverse</groupId>
<artifactId>unf</artifactId>
<version>6.0</version>
<version>6.0.1</version>
</dependency>
<!-- Rosuda Rengine and Rserve, packaged by org.nuiton.thirdparty -->
<!-- TODO: see if there's another, better maintained maven repository for Rosuda libraries? - L.A. -->
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/edu/harvard/iq/dataverse/DatasetPage.java
Original file line number Diff line number Diff line change
Expand Up @@ -2864,6 +2864,11 @@ public void sort() {
public String refresh() {
logger.fine("refreshing");

//TODO remove in 6.0 - fix for https://github.com/IQSS/dataverse/issues/9954
if(versionId == null && workingVersion != null) {
versionId = workingVersion.getId();
}

//dataset = datasetService.find(dataset.getId());
dataset = null;
workingVersion = null;
Expand Down

0 comments on commit 24a807e

Please sign in to comment.