DS-3734 Fixed missing trigger of item last modified date when adding a bitstream.

This commit is contained in:
Christian Scheible
2017-10-27 14:06:32 +02:00
committed by Kim Shepherd
parent c293756a45
commit 0f752b4f62

View File

@@ -146,6 +146,14 @@ 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);