Merge pull request #1877 from christian-scheible/DS-3734

DS-3734 Fixed missing trigger of item last modified date when adding a bitstream
This commit is contained in:
kshepherd
2018-04-26 07:39:37 +12:00
committed by GitHub

View File

@@ -147,6 +147,14 @@ public class BundleServiceImpl extends DSpaceObjectServiceImpl<Bundle> implement
return; return;
} }
} }
//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);