From 5ff19fe752b8031459afb3f7c9b47d17cd582b08 Mon Sep 17 00:00:00 2001 From: Richard Millet Date: Tue, 11 Aug 2009 04:30:05 +0000 Subject: [PATCH] CSPACE-332: Fixing bug that had id and url fields swapped on RelationListItem results. --- .../common/relation/nuxeo/RelationUtilsNuxeoImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationUtilsNuxeoImpl.java b/services/common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationUtilsNuxeoImpl.java index 1294ff6d0..6e4d794e1 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationUtilsNuxeoImpl.java +++ b/services/common/src/main/java/org/collectionspace/services/common/relation/nuxeo/RelationUtilsNuxeoImpl.java @@ -118,7 +118,7 @@ public class RelationUtilsNuxeoImpl implements RelationUtils { relation.setDocumentId2((String) valueObject); valueObject = relDocModel.getProperty(REL_NUXEO_SCHEMA_NAME, xpathRoot - + RelationJAXBSchema.DOCUMENT_TYPE_1); + + RelationJAXBSchema.DOCUMENT_TYPE_2); relation.setDocumentType2((String) valueObject); valueObject = relDocModel.getProperty(REL_NUXEO_SCHEMA_NAME, xpathRoot @@ -146,9 +146,9 @@ public class RelationUtilsNuxeoImpl implements RelationUtils { throws DocumentException { try { - relationListItem.setUri( - relDocModel.getId()); relationListItem.setCsid( + relDocModel.getId()); + relationListItem.setUri( getRelURL(CS_RELATION_SERVICE_NAME, relDocModel.getId())); } catch (Exception e) { if (logger.isDebugEnabled()) { -- 2.47.3