mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 22:13: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");
|
TableRow row = DatabaseManager.create(context, "collection");
|
||||||
Collection c = new Collection(context, row);
|
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
|
// create the default authorization policy for collections
|
||||||
// of 'anonymous' READ
|
// of 'anonymous' READ
|
||||||
@@ -261,7 +261,7 @@ public class Collection extends DSpaceObject
|
|||||||
log.info(LogManager.getHeader(context,
|
log.info(LogManager.getHeader(context,
|
||||||
"create_collection",
|
"create_collection",
|
||||||
"collection_id=" + row.getIntColumn("collection_id")) +
|
"collection_id=" + row.getIntColumn("collection_id")) +
|
||||||
",handle=" + newHandle);
|
",handle=" + c.handle);
|
||||||
|
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user