]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-5844 Fixed CMIS call to use extended doc type when appropriate.
authorPatrick Schmitz <pschmitz@berkeley.edu>
Thu, 7 Feb 2013 08:13:16 +0000 (00:13 -0800)
committerPatrick Schmitz <pschmitz@berkeley.edu>
Thu, 7 Feb 2013 08:13:16 +0000 (00:13 -0800)
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java

index f7a4a4aacaa7a9e644ea8a8829d683cd8a753f57..fddcd4cc3914b431caf9f951cf62d660a164670b 100644 (file)
@@ -472,7 +472,9 @@ public abstract class DocumentModelHandler<T, TL>
                String matchObjDocTypes = (String)queryParams.getFirst(IQueryManager.SEARCH_RELATED_MATCH_OBJ_DOCTYPES);
                String selectDocType = (String)queryParams.getFirst(IQueryManager.SELECT_DOC_TYPE_FIELD);
 
-               String docType = this.getServiceContext().getDocumentType();
+               //String docType = this.getServiceContext().getDocumentType();
+               // If this type in this tenant has been extended, be sure to use that so extension schema is visible.
+               String docType = NuxeoUtils.getTenantQualifiedDocType(this.getServiceContext());
                if (selectDocType != null && !selectDocType.isEmpty()) {  
                        docType = selectDocType;
                }