Skip to content

Commit

Permalink
Merge pull request #753 from kosarko/issue_#752
Browse files Browse the repository at this point in the history
fixes #752 - Bitstreams added through rest don't trigger item.update
  • Loading branch information
vidiecan authored May 31, 2017
2 parents 2d952d9 + bea4bbf commit 57ee0b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dspace-rest/src/main/java/org/dspace/rest/ItemsResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ public Bitstream addItemBitstream(@PathParam("item_id") Integer itemId, InputStr

dspaceBitstream = org.dspace.content.Bitstream.find(context, dspaceBitstream.getID());
bitstream = new Bitstream(dspaceBitstream, "");
//trigger auto generated metadata on item
dspaceItem.update();

context.complete();

Expand Down

0 comments on commit 57ee0b6

Please sign in to comment.