From: Patrick Schmitz Date: Thu, 7 Feb 2013 08:13:16 +0000 (-0800) Subject: CSPACE-5844 Fixed CMIS call to use extended doc type when appropriate. X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=78c64af187096323589797ee061399db7ddc7760;p=tmp%2Fjakarta-migration.git CSPACE-5844 Fixed CMIS call to use extended doc type when appropriate. --- diff --git a/services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java b/services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java index f7a4a4aac..fddcd4cc3 100644 --- a/services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java +++ b/services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/DocumentModelHandler.java @@ -472,7 +472,9 @@ public abstract class DocumentModelHandler 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; }