From c227d3aef949af1d0de4eb4bdac4b746fa042111 Mon Sep 17 00:00:00 2001
From: buczekp <buczekp>
Date: Thu, 11 Aug 2011 09:30:36 +0000
Subject: [PATCH] [LMS-2442] fixed saving location

SVN: 22474
---
 .../cisd/openbis/generic/server/dataaccess/db/DataDAO.java   | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/db/DataDAO.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/db/DataDAO.java
index c1856f122b3..869dbc47609 100644
--- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/db/DataDAO.java
+++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/server/dataaccess/db/DataDAO.java
@@ -583,7 +583,7 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple
                 + SQLBuilder.inEntityIds();
     }
 
-    // TODO refactor - it is very similar code to the one in AbstractGenericEntityWithPropertiesDAO 
+    // TODO refactor - it is very similar code to the one in AbstractGenericEntityWithPropertiesDAO
     protected class DeleteDataSetsPermanentlyBatchOperation implements IBatchOperation<Long>
     {
 
@@ -742,14 +742,13 @@ final class DataDAO extends AbstractGenericEntityWithPropertiesDAO<DataPE> imple
 
                         public String toString(Object value)
                         {
-                            return value == null ? "" : delegatee.toString();
+                            return value == null ? "" : delegatee.toString(value);
                         }
                     };
                 final String allPermIdsAsString =
                         CollectionUtils.abbreviate(permIds, -1, toStringConverter,
                                 CollectionStyle.NO_BOUNDARY);
                 sqlQueryInsertEvent.setParameter(IDENTIFIERS_PARAM, allPermIdsAsString);
-                // FIXME handle null locations for containers
                 final String description =
                         CollectionUtils.abbreviate(locations, -1, toStringConverter,
                                 CollectionStyle.NO_BOUNDARY);
-- 
GitLab