From b9a00967adaf9118a4d0f091eea07f1f9f6c2cf6 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Thu, 5 Sep 2019 12:57:44 +0200
Subject: [PATCH] remove test code

---
 entity/Person_entity/Person_entity.aod        |  4 ---
 .../actionfield/onActionProcess.js            | 29 -------------------
 2 files changed, 33 deletions(-)
 delete mode 100644 entity/Person_entity/entityfields/actionfield/onActionProcess.js

diff --git a/entity/Person_entity/Person_entity.aod b/entity/Person_entity/Person_entity.aod
index f8706d25fe..714781d05f 100644
--- a/entity/Person_entity/Person_entity.aod
+++ b/entity/Person_entity/Person_entity.aod
@@ -928,10 +928,6 @@ Usually this is used for filtering COMMUNICATION-entries by a specified contact
       <displayValueProcess>%aditoprj%/entity/Person_entity/entityfields/organisation_contactid/displayValueProcess.js</displayValueProcess>
       <onValidation>%aditoprj%/entity/Person_entity/entityfields/organisation_contactid/onValidation.js</onValidation>
     </entityField>
-    <entityActionField>
-      <name>ActionField</name>
-      <onActionProcess>%aditoprj%/entity/Person_entity/entityfields/actionfield/onActionProcess.js</onActionProcess>
-    </entityActionField>
   </entityFields>
   <recordContainers>
     <dbRecordContainer>
diff --git a/entity/Person_entity/entityfields/actionfield/onActionProcess.js b/entity/Person_entity/entityfields/actionfield/onActionProcess.js
deleted file mode 100644
index 7f203a8e81..0000000000
--- a/entity/Person_entity/entityfields/actionfield/onActionProcess.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import("system.logging");
-import("DocumentTemplate_lib");
-import("Placeholder_lib");
-
-var p = "C3=BCgu{=\n\
-@test@}es auf unseren Prod{@test5@}uktiv-Daten arbeitet und die Tickets / Proekte{@ =\n\
-test2@}2.0) abbildet.{@tes=\n\
-t3@}\n\
-{   =\n\
-@te=\n\
-st@=\n\
-}\n\
-"
-function rep(pText)
-{
-    return pText.replace(new RegExp(
-//    "{.*?@(.|\n){1,50}?@.*?}"
-"{\\s*(=\\r?\\n)?@(.|(\\r?\\n))+?@\\s*(=\\r?\\n)?}"
-    , "ig"), function(pFound) {
-        logging.log(pFound);
-        
-        return "_";
-    }, "ig")
-}
-logging.log("{\\s*(=\\r?\\n)?@(.|(\\r?\\n))+?@\\s*(=\\r?\\n)?}");
-
-res = rep(p, PlaceholderUtils.getPlaceholders());
-
-logging.log(res);
\ No newline at end of file
-- 
GitLab