Skip to content
Snippets Groups Projects
Commit 32e3f243 authored by Johannes Hörmann's avatar Johannes Hörmann
Browse files

fix objectrelation tree

parent 0da12c1e
No related branches found
No related tags found
No related merge requests found
......@@ -42,10 +42,12 @@ function _loadObjectRelationTree(pObjectId, pObjectType, pObjectRelationTypeId,
if (pObjectRelationTypeId)
{
var relationTypeData = ObjectRelationUtils.getRelationType(pObjectRelationTypeId);
relationTypeData = ObjectRelationUtils.getRelationType(relationTypeData[8]);
// if hirachy: get most top id else use the current currentObjectId
if (relationTypeData[4] == "1")
{
// use always reverse-type
relationTypeData = ObjectRelationUtils.getRelationType(relationTypeData[8]);
currentObjectId = _getRootID(currentObjectId, relationTypeData);
}
......@@ -54,7 +56,6 @@ function _loadObjectRelationTree(pObjectId, pObjectType, pObjectRelationTypeId,
{
_loadObjectRelationTree(uids[i][0], uids[i][3], relationTypeData[0], uids[i], pLayer+1);
}
}
else // no ObjectType chosen
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment