Skip to content
Snippets Groups Projects
Commit dc126667 authored by S.Listl's avatar S.Listl
Browse files

Object relations wrong direction after insert

parent 0145144f
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,8 @@ import("Contact_lib");
* - the "tree" is returned
*/
//TODO: Refactoring in this process. It's rather hard to understand and uses more sql queries than necessary.
//uid array structure
var UID = {
objectId: 0,
......
......@@ -20,7 +20,7 @@ if (selectedObjectRelationTypeId)
var objectId1 = rowdata["PARENT_ID.value"];
var objectId2 = rowdata["TARGET_ID.value"];
if (side == "1")
if (side != "1")
[objectId1, objectId2] = [objectId2, objectId1];
db.insertData("AB_OBJECTRELATION", [
......
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