mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-21 18:09:20 +00:00
Fix ALF-1902: CMIS: cannot retrieve custom relationship information
- also update to latest Chemistry AtomPub TCK with new test case git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19418 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -28,7 +28,7 @@ script:
|
||||
status.setCode(400, "Relationship type " + relType + " unknown");
|
||||
break script;
|
||||
}
|
||||
if (model.relTypeDef.baseType.typeId != "relationship")
|
||||
if (model.relTypeDef.baseType.typeId != RELATIONSHIP_TYPE_ID)
|
||||
{
|
||||
status.setCode(400, "Type + " + relType + " is not a relationship type");
|
||||
break script;
|
||||
@@ -52,7 +52,7 @@ script:
|
||||
|
||||
// retrieve relationships
|
||||
var page = paging.createPageOrWindow(args);
|
||||
var paged = cmis.queryRelationships(model.node, model.relDefType, model.includeSubRelationshipTypes, model.direction, page);
|
||||
var paged = cmis.queryRelationships(model.node, model.relTypeDef, model.includeSubRelationshipTypes, model.direction, page);
|
||||
model.results = paged.results;
|
||||
model.cursor = paged.cursor;
|
||||
}
|
||||
|
Reference in New Issue
Block a user