Skip to content

Commit

Permalink
Removal of unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmajchrak committed Dec 16, 2024
1 parent 5f63dcd commit fb82e94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ public ItemRest updateLicenseForBundle(@PathVariable UUID uuid,
log.warn("Cannot find clarin license with id: " + licenseId + ". The old license will be detached, " +
"but the new one will not be attached.");
}

List<Bundle> bundles = item.getBundles(Constants.CONTENT_BUNDLE_NAME);
for (Bundle clarinBundle : bundles) {
List<Bitstream> bitstreamList = clarinBundle.getBitstreams();
Expand All @@ -186,6 +185,7 @@ public ItemRest updateLicenseForBundle(@PathVariable UUID uuid,
if (Objects.nonNull(clarinLicense)) {
clarinLicenseService.addLicenseMetadataToItem(context, clarinLicense, item);
}

itemService.update(context, item);
provenanceService.editLicense(context, item, !Objects.isNull(clarinLicense));
context.commit();
Expand Down

0 comments on commit fb82e94

Please sign in to comment.