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

bugfixes objectrelation

parent cfb8c04a
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@
</entityField>
<entityField>
<name>TARGET_ID</name>
<title>Object</title>
<title>Relation</title>
<consumer>Objects</consumer>
<linkedContextProcess>%aditoprj%/entity/ObjectTree_entity/entityfields/target_id/linkedContextProcess.js</linkedContextProcess>
<searchable v="false" />
......
......@@ -22,9 +22,15 @@ else if(vars.exists("$local.idvalues") && vars.get("$local.idvalues") && vars.ge
if (uidParam)
{
let uid = JSON.parse(uidParam);
let relationTypeData = ObjectRelationUtils.getRelationType(uid[2]);
_insertEntry(tree, _getEntryData(uid[0], relationTypeData[3], relationTypeData[7], relationTypeData[8], undefined, false, uid[6]), "", 0, uid[3], relationTypeData[10]);
let isObjectRelationNode = typeof uid[2] == "string";
if (isObjectRelationNode)
{
let relationTypeData = ObjectRelationUtils.getRelationType(uid[2]);
_insertEntry(tree, _getEntryData(uid[0], relationTypeData[3], relationTypeData[7], relationTypeData[8], undefined, false, uid[6]), "", 0, uid[3], relationTypeData[10]);
}
}
else
{
......
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