mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 13:33:08 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user