From 889b52532c83951524f93b9b033e55a7214ef4ef Mon Sep 17 00:00:00 2001
From: "a.voegl" <a.voegl@adito.de>
Date: Wed, 1 Apr 2020 16:06:45 +0200
Subject: [PATCH] Organisation-Report Fix

---
 .../entityfields/orgreport/onActionProcess.js               | 2 +-
 process/Organisation_lib/process.js                         | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/entity/Organisation_entity/entityfields/orgreport/onActionProcess.js b/entity/Organisation_entity/entityfields/orgreport/onActionProcess.js
index 1e5bcbc94ce..5be38c8360e 100644
--- a/entity/Organisation_entity/entityfields/orgreport/onActionProcess.js
+++ b/entity/Organisation_entity/entityfields/orgreport/onActionProcess.js
@@ -1,4 +1,4 @@
 import("system.vars");
 import("Organisation_lib");
 
-OrgUtils.openOrgReport(vars.get("$field.ORGANISATIONID"));
\ No newline at end of file
+OrgUtils.openOrgReport(vars.get("$field.CONTACTID"));
\ No newline at end of file
diff --git a/process/Organisation_lib/process.js b/process/Organisation_lib/process.js
index fcba7288236..ae3069a4d2e 100644
--- a/process/Organisation_lib/process.js
+++ b/process/Organisation_lib/process.js
@@ -228,9 +228,9 @@ var activityData = activityQuery.table()
 /**
  * opens the org-report
  *
- * @param {String} pOrgId the id of the organization
+ * @param {String} pContactId the contactid of the organization
  */
-OrgUtils.openOrgReport = function(pOrgId)
+OrgUtils.openOrgReport = function(pContactId)
 {
-    neon.openContext("Organisation", "OrganisationReport_view", [pOrgId], neon.OPERATINGSTATE_VIEW, null);
+    neon.openContext("Organisation", "OrganisationReport_view", [pContactId], neon.OPERATINGSTATE_VIEW, null);
 }
-- 
GitLab