From c7873e627c3716920eccfbd1a40916c546ee33e7 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Tue, 25 Jun 2019 15:13:00 +0200
Subject: [PATCH] remove ticket buttons in task

---
 entity/Task_entity/Task_entity.aod            | 19 -------------------
 .../children/newbugticket/onActionProcess.js  |  7 -------
 .../newsupportticket/onActionProcess.js       |  7 -------
 neonView/TaskFilter_view/TaskFilter_view.aod  |  3 ---
 4 files changed, 36 deletions(-)
 delete mode 100644 entity/Task_entity/entityfields/tableactions/children/newbugticket/onActionProcess.js
 delete mode 100644 entity/Task_entity/entityfields/tableactions/children/newsupportticket/onActionProcess.js

diff --git a/entity/Task_entity/Task_entity.aod b/entity/Task_entity/Task_entity.aod
index 394f36d5b9..6d0c4a3d13 100644
--- a/entity/Task_entity/Task_entity.aod
+++ b/entity/Task_entity/Task_entity.aod
@@ -418,25 +418,6 @@
         </entityParameter>
       </children>
     </entityConsumer>
-    <entityActionGroup>
-      <name>tableActions</name>
-      <children>
-        <entityActionField>
-          <name>newBugTicket</name>
-          <title>New Bugticket</title>
-          <onActionProcess>%aditoprj%/entity/Task_entity/entityfields/tableactions/children/newbugticket/onActionProcess.js</onActionProcess>
-          <iconId>VAADIN:PUZZLE_PIECE</iconId>
-          <tooltip>New Bugticket</tooltip>
-        </entityActionField>
-        <entityActionField>
-          <name>newSupportTicket</name>
-          <title>New Supportticket</title>
-          <onActionProcess>%aditoprj%/entity/Task_entity/entityfields/tableactions/children/newsupportticket/onActionProcess.js</onActionProcess>
-          <iconId>VAADIN:QUESTION</iconId>
-          <tooltip>New Supportticket</tooltip>
-        </entityActionField>
-      </children>
-    </entityActionGroup>
     <entityField>
       <name>TYPE</name>
       <valueProcess>%aditoprj%/entity/Task_entity/entityfields/type/valueProcess.js</valueProcess>
diff --git a/entity/Task_entity/entityfields/tableactions/children/newbugticket/onActionProcess.js b/entity/Task_entity/entityfields/tableactions/children/newbugticket/onActionProcess.js
deleted file mode 100644
index 5a967a8105..0000000000
--- a/entity/Task_entity/entityfields/tableactions/children/newbugticket/onActionProcess.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import("system.vars");
-import("ActivityTask_lib");
-import("KeywordRegistry_basic");
-import("Context_lib");
-
-// no parentid as tickets do not use them
-TaskUtils.createNewTask(undefined, undefined, ContextUtils.getCurrentContextId(), undefined, {Type_param: $KeywordRegistry.taskType$bugTicket()});
\ No newline at end of file
diff --git a/entity/Task_entity/entityfields/tableactions/children/newsupportticket/onActionProcess.js b/entity/Task_entity/entityfields/tableactions/children/newsupportticket/onActionProcess.js
deleted file mode 100644
index 56a663ad51..0000000000
--- a/entity/Task_entity/entityfields/tableactions/children/newsupportticket/onActionProcess.js
+++ /dev/null
@@ -1,7 +0,0 @@
-import("system.vars");
-import("ActivityTask_lib");
-import("KeywordRegistry_basic");
-import("Context_lib");
-
-// no parentid as tickets do not use them
-TaskUtils.createNewTask(undefined, undefined, ContextUtils.getCurrentContextId(), undefined, {Type_param: $KeywordRegistry.taskType$supportTicket()});
\ No newline at end of file
diff --git a/neonView/TaskFilter_view/TaskFilter_view.aod b/neonView/TaskFilter_view/TaskFilter_view.aod
index 138b8f89a2..63ecfb8b08 100644
--- a/neonView/TaskFilter_view/TaskFilter_view.aod
+++ b/neonView/TaskFilter_view/TaskFilter_view.aod
@@ -34,7 +34,6 @@
   <children>
     <timelineViewTemplate>
       <name>TasksTimeline</name>
-      <favoriteActionGroup1>tableActions</favoriteActionGroup1>
       <dateField>MATURITY_DATE</dateField>
       <titleField>SUBJECT_DETAILS</titleField>
       <descriptionField>DESCRIPTION</descriptionField>
@@ -43,7 +42,6 @@
     </timelineViewTemplate>
     <tableViewTemplate>
       <name>TasksTable</name>
-      <favoriteActionGroup1>tableActions</favoriteActionGroup1>
       <entityField>#ENTITY</entityField>
       <title></title>
       <columns>
@@ -88,7 +86,6 @@
     </tableViewTemplate>
     <treeTableViewTemplate>
       <name>TasksTreeTable</name>
-      <favoriteActionGroup1>tableActions</favoriteActionGroup1>
       <defaultGroupFields>
         <element>TYPE</element>
       </defaultGroupFields>
-- 
GitLab