79369: Fix for collection admin item delete with bitstream

This commit is contained in:
Marie Verdonck
2021-05-12 23:50:37 +02:00
parent db17c16dc5
commit a105b4a7e5

View File

@@ -501,10 +501,10 @@ public class BundleServiceImpl extends DSpaceObjectServiceImpl<Bundle> implement
// Remove bitstreams
List<Bitstream> bitstreams = bundle.getBitstreams();
bundle.clearBitstreams();
for (Bitstream bitstream : bitstreams) {
removeBitstream(context, bundle, bitstream);
}
bundle.clearBitstreams();
List<Item> items = new LinkedList<>(bundle.getItems());
bundle.getItems().clear();