summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/cmis/cmis_datasupplier.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'ucb/source/ucp/cmis/cmis_datasupplier.cxx')
-rw-r--r--ucb/source/ucp/cmis/cmis_datasupplier.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/ucb/source/ucp/cmis/cmis_datasupplier.cxx b/ucb/source/ucp/cmis/cmis_datasupplier.cxx
index 2a82a9bdfc4c..59ffd73ff609 100644
--- a/ucb/source/ucp/cmis/cmis_datasupplier.cxx
+++ b/ucb/source/ucp/cmis/cmis_datasupplier.cxx
@@ -90,11 +90,15 @@ namespace cmis
if ( getResult( nIndex ) )
{
- string sObjectId = maResults[nIndex]->pObject->getId( );
+ string sObjectPath;
+ vector< string > paths = maResults[nIndex]->pObject->getPaths( );
+ if ( paths.size( ) > 0 )
+ sObjectPath = paths.front( );
+ // TODO Handle the unfiled objects with their id... but can they manage to come here?
- // Get the URL from the Id
+ // Get the URL from the Path
URL aUrl( mxContent->getIdentifier( )->getContentIdentifier( ) );
- aUrl.setObjectId( rtl::OUString::createFromAscii( sObjectId.c_str( ) ) );
+ aUrl.setObjectPath( rtl::OUString::createFromAscii( sObjectPath.c_str( ) ) );
rtl::OUString aId = aUrl.asString( );
maResults[ nIndex ]->aId = aId;