mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Merge pull request #2040 from kshepherd/ds-3734_last_modified_timestamp_master_port
DS-3734 Fixed missing trigger of item last modified date when adding …
This commit is contained in:
@@ -146,6 +146,13 @@ public class BundleServiceImpl extends DSpaceObjectServiceImpl<Bundle> implement
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ensure that the last modified from the item is triggered !
|
||||||
|
Item owningItem = (Item) getParentObject(context, bundle);
|
||||||
|
if (owningItem != null) {
|
||||||
|
itemService.updateLastModified(context, owningItem);
|
||||||
|
itemService.update(context, owningItem);
|
||||||
|
}
|
||||||
|
|
||||||
bundle.addBitstream(bitstream);
|
bundle.addBitstream(bitstream);
|
||||||
bitstream.getBundles().add(bundle);
|
bitstream.getBundles().add(bundle);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user