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:
kshepherd
2018-04-30 13:38:09 +12:00
committed by GitHub

View File

@@ -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);
bitstream.getBundles().add(bundle);