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:
David Stuve
2004-02-26 16:34:41 +00:00
parent 696e5d5ec2
commit fa4617fda3

View File

@@ -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?