We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b6c367 commit c9d33e2Copy full SHA for c9d33e2
1 file changed
src/main/java/edu/harvard/iq/dataverse/LicenseServiceBean.java
@@ -55,6 +55,7 @@ public License getByName(String name) throws FetchException {
55
public License 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");
0 commit comments