We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3da68b + 60292bb commit 5cee794Copy full SHA for 5cee794
1 file changed
src/main/java/edu/harvard/iq/dataverse/LicenseServiceBean.java
@@ -55,6 +55,8 @@ public License getByName(String name) throws FetchException {
55
public void save(License license) throws PersistenceException, RequestBodyException {
56
if (license.getId() == null) {
57
em.persist(license);
58
+ em.flush();
59
+ return license;
60
} else {
61
throw new RequestBodyException("There shouldn't be an ID in the request body");
62
}
0 commit comments