mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 18:14:26 +00:00
DS-3734 Fixed missing trigger of item last modified date when adding a bitstream.
This commit is contained in:

committed by
Kim Shepherd

parent
c293756a45
commit
0f752b4f62
@@ -145,6 +145,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);
|
||||||
|
Reference in New Issue
Block a user