mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 07:23:08 +00:00
Fixed bug - bitstream format of new file was being set after the update()
method, so it never made it into the database. git-svn-id: http://scm.dspace.org/svn/repo/trunk@753 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -139,12 +139,12 @@ public abstract class MediaFilter
|
||||
// Now set the format and name of the bitstream
|
||||
b.setName(newName);
|
||||
b.setSource("Written by MediaFilter " + this.getClass().getName() ); // or obj.getClass().getName();
|
||||
b.update();
|
||||
|
||||
// Find the proper format
|
||||
BitstreamFormat bf = BitstreamFormat.findByShortDescription(
|
||||
c, getFormatString());
|
||||
b.setFormat(bf);
|
||||
b.update();
|
||||
|
||||
// fixme - set date?
|
||||
|
||||
|
Reference in New Issue
Block a user