mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
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:
@@ -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)
|
||||
{
|
||||
@@ -242,4 +245,4 @@ public class MediaFilterManager
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user