From 858f1fbe84e88b7d6417c5f032a284032b70a4bb Mon Sep 17 00:00:00 2001
From: "j.goderbauer" <j.goderbauer@adito.de>
Date: Thu, 4 Apr 2019 09:25:35 +0200
Subject: [PATCH] AnyContact: removed all consumers since they are unused

---
 .../AnyContact_entity/AnyContact_entity.aod   | 62 -------------------
 .../children/contactid_param/valueProcess.js  |  4 --
 .../children/contactid_param/valueProcess.js  |  4 --
 .../children/contactid_param/valueProcess.js  |  4 --
 .../children/contactid_param/valueProcess.js  |  4 --
 .../Communication_entity.aod                  | 12 ----
 .../Organisation_entity.aod                   |  8 ---
 entity/Person_entity/Person_entity.aod        |  6 --
 8 files changed, 104 deletions(-)
 delete mode 100644 entity/AnyContact_entity/entityfields/contact/children/contactid_param/valueProcess.js
 delete mode 100644 entity/AnyContact_entity/entityfields/emailcommunications/children/contactid_param/valueProcess.js
 delete mode 100644 entity/AnyContact_entity/entityfields/organisations/children/contactid_param/valueProcess.js
 delete mode 100644 entity/AnyContact_entity/entityfields/phonecommunications/children/contactid_param/valueProcess.js

diff --git a/entity/AnyContact_entity/AnyContact_entity.aod b/entity/AnyContact_entity/AnyContact_entity.aod
index 72bf6904f8..3cad25e214 100644
--- a/entity/AnyContact_entity/AnyContact_entity.aod
+++ b/entity/AnyContact_entity/AnyContact_entity.aod
@@ -62,36 +62,6 @@ See ContactUtils.getRelationTypeByPersOrg for possible values</description>
       <searchable v="false" />
       <valueProcess>%aditoprj%/entity/AnyContact_entity/entityfields/contactType/valueProcess.js</valueProcess>
     </entityField>
-    <entityConsumer>
-      <name>Contact</name>
-      <fieldType>DEPENDENCY_OUT</fieldType>
-      <dependency>
-        <name>dependency</name>
-        <entityName>Person_entity</entityName>
-        <fieldName>Contact</fieldName>
-      </dependency>
-      <children>
-        <entityParameter>
-          <name>ContactId_param</name>
-          <valueProcess>%aditoprj%/entity/AnyContact_entity/entityfields/contact/children/contactid_param/valueProcess.js</valueProcess>
-        </entityParameter>
-      </children>
-    </entityConsumer>
-    <entityConsumer>
-      <name>Organisations</name>
-      <fieldType>DEPENDENCY_OUT</fieldType>
-      <dependency>
-        <name>dependency</name>
-        <entityName>Organisation_entity</entityName>
-        <fieldName>Organisations</fieldName>
-      </dependency>
-      <children>
-        <entityParameter>
-          <name>ContactId_param</name>
-          <valueProcess>%aditoprj%/entity/AnyContact_entity/entityfields/organisations/children/contactid_param/valueProcess.js</valueProcess>
-        </entityParameter>
-      </children>
-    </entityConsumer>
     <entityField>
       <name>ORGANISATION_NAME</name>
       <title>Organisation name</title>
@@ -110,38 +80,6 @@ See ContactUtils.getRelationTypeByPersOrg for possible values</description>
       <searchable v="false" />
       <valueProcess>%aditoprj%/entity/AnyContact_entity/entityfields/image/valueProcess.js</valueProcess>
     </entityField>
-    <entityConsumer>
-      <name>EmailCommunications</name>
-      <fieldType>DEPENDENCY_OUT</fieldType>
-      <dependency>
-        <name>dependency</name>
-        <entityName>Communication_entity</entityName>
-        <fieldName>EmailCommunications</fieldName>
-      </dependency>
-      <children>
-        <entityParameter>
-          <name>ContactId_param</name>
-          <valueProcess>%aditoprj%/entity/AnyContact_entity/entityfields/emailcommunications/children/contactid_param/valueProcess.js</valueProcess>
-          <expose v="false" />
-        </entityParameter>
-      </children>
-    </entityConsumer>
-    <entityConsumer>
-      <name>PhoneCommunications</name>
-      <fieldType>DEPENDENCY_OUT</fieldType>
-      <dependency>
-        <name>dependency</name>
-        <entityName>Communication_entity</entityName>
-        <fieldName>PhoneCommunications</fieldName>
-      </dependency>
-      <children>
-        <entityParameter>
-          <name>ContactId_param</name>
-          <valueProcess>%aditoprj%/entity/AnyContact_entity/entityfields/phonecommunications/children/contactid_param/valueProcess.js</valueProcess>
-          <expose v="false" />
-        </entityParameter>
-      </children>
-    </entityConsumer>
     <entityField>
       <name>STANDARD_EMAIL_COMMUNICATION</name>
       <title>standard email</title>
diff --git a/entity/AnyContact_entity/entityfields/contact/children/contactid_param/valueProcess.js b/entity/AnyContact_entity/entityfields/contact/children/contactid_param/valueProcess.js
deleted file mode 100644
index 7b6137b4d1..0000000000
--- a/entity/AnyContact_entity/entityfields/contact/children/contactid_param/valueProcess.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import("system.vars");
-import("system.result");
-
-result.string(vars.get("$field.CONTACTID"));
\ No newline at end of file
diff --git a/entity/AnyContact_entity/entityfields/emailcommunications/children/contactid_param/valueProcess.js b/entity/AnyContact_entity/entityfields/emailcommunications/children/contactid_param/valueProcess.js
deleted file mode 100644
index 7b6137b4d1..0000000000
--- a/entity/AnyContact_entity/entityfields/emailcommunications/children/contactid_param/valueProcess.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import("system.vars");
-import("system.result");
-
-result.string(vars.get("$field.CONTACTID"));
\ No newline at end of file
diff --git a/entity/AnyContact_entity/entityfields/organisations/children/contactid_param/valueProcess.js b/entity/AnyContact_entity/entityfields/organisations/children/contactid_param/valueProcess.js
deleted file mode 100644
index 7b6137b4d1..0000000000
--- a/entity/AnyContact_entity/entityfields/organisations/children/contactid_param/valueProcess.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import("system.vars");
-import("system.result");
-
-result.string(vars.get("$field.CONTACTID"));
\ No newline at end of file
diff --git a/entity/AnyContact_entity/entityfields/phonecommunications/children/contactid_param/valueProcess.js b/entity/AnyContact_entity/entityfields/phonecommunications/children/contactid_param/valueProcess.js
deleted file mode 100644
index 7b6137b4d1..0000000000
--- a/entity/AnyContact_entity/entityfields/phonecommunications/children/contactid_param/valueProcess.js
+++ /dev/null
@@ -1,4 +0,0 @@
-import("system.vars");
-import("system.result");
-
-result.string(vars.get("$field.CONTACTID"));
\ No newline at end of file
diff --git a/entity/Communication_entity/Communication_entity.aod b/entity/Communication_entity/Communication_entity.aod
index 5bf31e7e5f..8c7e0e773a 100644
--- a/entity/Communication_entity/Communication_entity.aod
+++ b/entity/Communication_entity/Communication_entity.aod
@@ -111,12 +111,6 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
           <fieldName>PhoneCommunications</fieldName>
           <isConsumer v="false" />
         </entityDependency>
-        <entityDependency>
-          <name>ddcd3c3d-f305-4ced-a8ac-ffb510474aa4</name>
-          <entityName>AnyContact_entity</entityName>
-          <fieldName>PhoneCommunications</fieldName>
-          <isConsumer v="false" />
-        </entityDependency>
       </dependencies>
       <children>
         <entityParameter>
@@ -150,12 +144,6 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
           <fieldName>EmailCommunications</fieldName>
           <isConsumer v="false" />
         </entityDependency>
-        <entityDependency>
-          <name>c6e2631a-896f-4689-b254-0091ed25f705</name>
-          <entityName>AnyContact_entity</entityName>
-          <fieldName>EmailCommunications</fieldName>
-          <isConsumer v="false" />
-        </entityDependency>
       </dependencies>
       <children>
         <entityParameter>
diff --git a/entity/Organisation_entity/Organisation_entity.aod b/entity/Organisation_entity/Organisation_entity.aod
index 50e97a34e4..0f950f13c9 100644
--- a/entity/Organisation_entity/Organisation_entity.aod
+++ b/entity/Organisation_entity/Organisation_entity.aod
@@ -122,14 +122,6 @@
       <name>Organisations</name>
       <fieldType>DEPENDENCY_IN</fieldType>
       <recordContainer>db</recordContainer>
-      <dependencies>
-        <entityDependency>
-          <name>e56d51be-aaf7-4ddc-8bed-7a4a3c42b4dd</name>
-          <entityName>AnyContact_entity</entityName>
-          <fieldName>Organisations</fieldName>
-          <isConsumer v="false" />
-        </entityDependency>
-      </dependencies>
       <children>
         <entityParameter>
           <name>ContactId_param</name>
diff --git a/entity/Person_entity/Person_entity.aod b/entity/Person_entity/Person_entity.aod
index 3390ce5317..9d70fe16b1 100644
--- a/entity/Person_entity/Person_entity.aod
+++ b/entity/Person_entity/Person_entity.aod
@@ -354,12 +354,6 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
       <fieldType>DEPENDENCY_IN</fieldType>
       <recordContainer>db</recordContainer>
       <dependencies>
-        <entityDependency>
-          <name>0b209ee1-3c13-4660-91c4-4d2a2c6cea77</name>
-          <entityName>AnyContact_entity</entityName>
-          <fieldName>Contact</fieldName>
-          <isConsumer v="false" />
-        </entityDependency>
         <entityDependency>
           <name>12c5350a-3159-449b-a94e-d57658b4c124</name>
           <entityName>SalesprojectMember_entity</entityName>
-- 
GitLab