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:
David Caruana
2010-03-19 17:55:36 +00:00
parent 20069d99c0
commit d26c4c93ba

View File

@@ -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;
}