From 78c64af187096323589797ee061399db7ddc7760 Mon Sep 17 00:00:00 2001 From: Patrick Schmitz Date: Thu, 7 Feb 2013 00:13:16 -0800 Subject: [PATCH] CSPACE-5844 Fixed CMIS call to use extended doc type when appropriate. --- .../services/nuxeo/client/java/DocumentModelHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.47.3