From c8d230e99157d7ee8c5505493a32286b3cdff19f Mon Sep 17 00:00:00 2001 From: "S.Listl" <S.Listl@SLISTL.aditosoftware.local> Date: Thu, 30 Jan 2020 12:42:02 +0000 Subject: [PATCH] Workflow starting fixed (cherry picked from commit 209fdb378c4e69489a4e6ab41351e6b14c4a6c94) --- entity/Organisation_entity/Organisation_entity.aod | 1 - entity/Salesproject_entity/Salesproject_entity.aod | 1 - process/Workflow_lib/process.js | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/entity/Organisation_entity/Organisation_entity.aod b/entity/Organisation_entity/Organisation_entity.aod index bf3a396fb32..6e049802083 100644 --- a/entity/Organisation_entity/Organisation_entity.aod +++ b/entity/Organisation_entity/Organisation_entity.aod @@ -1024,7 +1024,6 @@ <title>Start workflow</title> <onActionProcess>%aditoprj%/entity/Organisation_entity/entityfields/startworkflow/onActionProcess.js</onActionProcess> <iconId>VAADIN:PLAY</iconId> - <state>INVISIBLE</state> </entityActionField> <entityField> <name>STANDARD_ADDRESS</name> diff --git a/entity/Salesproject_entity/Salesproject_entity.aod b/entity/Salesproject_entity/Salesproject_entity.aod index c489c9b5d7b..14dae46d6d5 100644 --- a/entity/Salesproject_entity/Salesproject_entity.aod +++ b/entity/Salesproject_entity/Salesproject_entity.aod @@ -735,7 +735,6 @@ <title>Start workflow</title> <onActionProcess>%aditoprj%/entity/Salesproject_entity/entityfields/startworkflow/onActionProcess.js</onActionProcess> <iconId>VAADIN:PLAY</iconId> - <state>INVISIBLE</state> </entityActionField> </entityFields> <recordContainers> diff --git a/process/Workflow_lib/process.js b/process/Workflow_lib/process.js index b4ada19acc5..cb3a3298f39 100644 --- a/process/Workflow_lib/process.js +++ b/process/Workflow_lib/process.js @@ -39,7 +39,7 @@ WorkflowUtils.openNewInstance = function (pVariables, pTargetId, pTargetContext) neon.openContext("WorkflowInstance", null, null, neon.OPERATINGSTATE_NEW, { "ProcessVariables_param" : JSON.stringify(pVariables), - "TargetContext_param" : pTargetContext + "TargetContext_param" : pVariables.targetContext }); } -- GitLab