Fix for SF bug ID# 1015296

Only invokes item.update() if item has not been skipped - i.e.
if the MediaFilter has run against it to create new bitstream.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@1037 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Richard Rodgers
2004-08-24 20:05:57 +00:00
parent 368f905ff8
commit 87ae73eb3d

View File

@@ -231,8 +231,11 @@ public class MediaFilterManager
try
{
myFilter.processBitstream(c, myItem, myBitstream);
myItem.update(); // Make sure new bitstream has a sequence number
// only update item if bitstream not skipped
if (myFilter.processBitstream(c, myItem, myBitstream))
{
myItem.update(); // Make sure new bitstream has a sequence number
}
}
catch (Exception e)
{