From 978db8df598bc7a9712256c3e0405312e0255f20 Mon Sep 17 00:00:00 2001 From: "s.pongratz" <s.pongratz@adito.de> Date: Tue, 19 May 2020 10:49:03 +0200 Subject: [PATCH] #1057201_Beziehungen_Bearbeiten Nummern vertauscht --- .../recordcontainers/jdito/contentProcess.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entity/ObjectTree_entity/recordcontainers/jdito/contentProcess.js b/entity/ObjectTree_entity/recordcontainers/jdito/contentProcess.js index c17d8835a8..fa1caa6ca2 100644 --- a/entity/ObjectTree_entity/recordcontainers/jdito/contentProcess.js +++ b/entity/ObjectTree_entity/recordcontainers/jdito/contentProcess.js @@ -83,7 +83,7 @@ else _loadObjectRelationTree.call(tree, originalObjectIds[i], originalObjectTypes[i], selectedRelationType); } } - if (uidParam) //workaround! + if (uidParam) //workaround! tree = tree.filter(function (row) {return JSON.parse(row[0])[UID.objectRelationId] == uidParam}); } @@ -233,7 +233,7 @@ function _getEntryData(pObjectId, pDirection, pRelationType1, pRelationType2, pP if (pRelationType1 == undefined || pRelationType2 == undefined) return []; - var [myNum, otherNum] = pDirection == "normal" ? [1, 2] : [2, 1]; + var [myNum, otherNum] = pDirection == "normal" ? [2, 1] : [1, 2]; onConditionForRelationTypeJoin = newWhere("AB_OBJECTRELATIONTYPEID = AB_OBJECTRELATIONTYPE" + myNum) .and("AB_OBJECTRELATION.AB_OBJECTRELATIONTYPE1", pRelationType1) -- GitLab