mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-12 12:33:18 +00:00
79369: Fix for collection admin item delete with bitstream
This commit is contained in:
@@ -501,10 +501,10 @@ public class BundleServiceImpl extends DSpaceObjectServiceImpl<Bundle> implement
|
|||||||
|
|
||||||
// Remove bitstreams
|
// Remove bitstreams
|
||||||
List<Bitstream> bitstreams = bundle.getBitstreams();
|
List<Bitstream> bitstreams = bundle.getBitstreams();
|
||||||
bundle.clearBitstreams();
|
|
||||||
for (Bitstream bitstream : bitstreams) {
|
for (Bitstream bitstream : bitstreams) {
|
||||||
removeBitstream(context, bundle, bitstream);
|
removeBitstream(context, bundle, bitstream);
|
||||||
}
|
}
|
||||||
|
bundle.clearBitstreams();
|
||||||
|
|
||||||
List<Item> items = new LinkedList<>(bundle.getItems());
|
List<Item> items = new LinkedList<>(bundle.getItems());
|
||||||
bundle.getItems().clear();
|
bundle.getItems().clear();
|
||||||
|
Reference in New Issue
Block a user