From 8a09c8313585942a326f084595ddd4f6fc63a733 Mon Sep 17 00:00:00 2001
From: "b.ulrich" <b.ulrich@adito.de>
Date: Mon, 5 Oct 2020 11:18:08 +0200
Subject: [PATCH] [Projekt: Entwicklung - Neon][TicketNr.: 1066607][Fehler bei
 Export]

---
 .../entityfields/exportcount/valueProcess.js               | 2 +-
 .../entityfields/selection/valueProcess.js                 | 7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/entity/ExportTemplateSelection_entity/entityfields/exportcount/valueProcess.js b/entity/ExportTemplateSelection_entity/entityfields/exportcount/valueProcess.js
index e8b2b80fb73..32d6b097f8e 100644
--- a/entity/ExportTemplateSelection_entity/entityfields/exportcount/valueProcess.js
+++ b/entity/ExportTemplateSelection_entity/entityfields/exportcount/valueProcess.js
@@ -2,7 +2,7 @@ import("FilterViewAction_lib");
 import("system.vars");
 import("system.result");
 
-var selection = vars.getString("$field.selection");
+var selection = vars.get("$field.selection");
 
 if(selection)
     result.string(JSON.parse(selection).length);
diff --git a/entity/ExportTemplateSelection_entity/entityfields/selection/valueProcess.js b/entity/ExportTemplateSelection_entity/entityfields/selection/valueProcess.js
index de704ba1678..4d89e193e37 100644
--- a/entity/ExportTemplateSelection_entity/entityfields/selection/valueProcess.js
+++ b/entity/ExportTemplateSelection_entity/entityfields/selection/valueProcess.js
@@ -2,14 +2,13 @@ import("FilterViewAction_lib");
 import("system.vars");
 import("system.result");
 
-var selection = JSON.parse(vars.getString("$param.selectedData_param"));
+var contactIds = JSON.parse(vars.getString("$param.selectedData_param"));
 var comingfrom = vars.getString("$param.comingFrom_param");
-var contactIds;
 
 
-if(!Array.isArray(selection)) //if selection is an array, data has been selected
+if(!Array.isArray(contactIds)) //if selection is an array, data has been selected
 {
-    var condition = selection.condition;
+    var condition = contactIds.condition;
     if(comingfrom == "Organisation")
         contactIds = FilterViewActionUtils.organisationIdsFilter(condition);
     else if (comingfrom == "Person")
-- 
GitLab