From e31767858bd956f36f1379d1726d26f0f2576d2e Mon Sep 17 00:00:00 2001 From: "m.groppe" <m.groppe@adito.de> Date: Tue, 26 Oct 2021 14:58:14 +0200 Subject: [PATCH] =?UTF-8?q?[Projekt:=20xRM-Marketing][TicketNr.:=202000953?= =?UTF-8?q?][Serienmail:=20"Test=20Run=20Actions"=20sind=20aktiv=20obwohl?= =?UTF-8?q?=20kein=20Empf=C3=A4nger=20ausgew=C3=A4hlt=20sind]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BulkMailRecipient_entity.aod | 1 + .../entityfields/testrunactions/stateProcess.js | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 entity/BulkMailRecipient_entity/entityfields/testrunactions/stateProcess.js diff --git a/entity/BulkMailRecipient_entity/BulkMailRecipient_entity.aod b/entity/BulkMailRecipient_entity/BulkMailRecipient_entity.aod index e480636ca5..9c27f55d0e 100644 --- a/entity/BulkMailRecipient_entity/BulkMailRecipient_entity.aod +++ b/entity/BulkMailRecipient_entity/BulkMailRecipient_entity.aod @@ -157,6 +157,7 @@ <entityActionGroup> <name>testRunActions</name> <title>Test Run Actions</title> + <stateProcess>%aditoprj%/entity/BulkMailRecipient_entity/entityfields/testrunactions/stateProcess.js</stateProcess> <children> <entityActionField> <name>setTestRecipient</name> diff --git a/entity/BulkMailRecipient_entity/entityfields/testrunactions/stateProcess.js b/entity/BulkMailRecipient_entity/entityfields/testrunactions/stateProcess.js new file mode 100644 index 0000000000..0d630e3477 --- /dev/null +++ b/entity/BulkMailRecipient_entity/entityfields/testrunactions/stateProcess.js @@ -0,0 +1,12 @@ +import("system.result"); +import("system.vars"); +import("system.neon"); + +if (vars.get("$sys.selection").length > 0) +{ + result.string(neon.COMPONENTSTATE_EDITABLE); +} +else +{ + result.string(neon.COMPONENTSTATE_INVISIBLE); +} \ No newline at end of file -- GitLab