From ae21ce2d29a9f9843a7da835d044e5368577e697 Mon Sep 17 00:00:00 2001 From: Grace Carpenter Date: Fri, 30 Jan 2004 20:45:50 +0000 Subject: [PATCH] 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 --- dspace/src/org/dspace/content/Collection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dspace/src/org/dspace/content/Collection.java b/dspace/src/org/dspace/content/Collection.java index 719911fc75..157d3fb6c0 100644 --- a/dspace/src/org/dspace/content/Collection.java +++ b/dspace/src/org/dspace/content/Collection.java @@ -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; }