Fix for #747489. Added code in create() to set handle on newly created

Collection object.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@721 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Grace Carpenter
2004-01-30 20:45:50 +00:00
parent ca6219606f
commit ae21ce2d29

View File

@@ -226,7 +226,7 @@ public class Collection extends DSpaceObject
{
TableRow row = DatabaseManager.create(context, "collection");
Collection c = new Collection(context, row);
String newHandle = HandleManager.createHandle(context, c);
c.handle = HandleManager.createHandle(context, c);
// create the default authorization policy for collections
// of 'anonymous' READ
@@ -261,7 +261,7 @@ public class Collection extends DSpaceObject
log.info(LogManager.getHeader(context,
"create_collection",
"collection_id=" + row.getIntColumn("collection_id")) +
",handle=" + newHandle);
",handle=" + c.handle);
return c;
}