mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
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:
@@ -148,6 +148,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);
|
bundle.addBitstream(bitstream);
|
||||||
bitstream.getBundles().add(bundle);
|
bitstream.getBundles().add(bundle);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user