From ddfc0a2cfcdb27ec4af03585427234218efc6ef6 Mon Sep 17 00:00:00 2001 From: Tom Lutzenberger <t.lutzenberger@adito.de> Date: Mon, 21 Sep 2020 07:44:50 +0000 Subject: [PATCH] #1065199 campaign creation bug --- .../recordfieldmappings/date_end.value/expression.js | 10 +++++++++- .../recordfieldmappings/date_start.value/expression.js | 10 +++++++++- neonView/360DegreeFilter_view/360DegreeFilter_view.aod | 1 - 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/entity/Campaign_entity/recordcontainers/db/recordfieldmappings/date_end.value/expression.js b/entity/Campaign_entity/recordcontainers/db/recordfieldmappings/date_end.value/expression.js index 11c7772942..510c61f479 100644 --- a/entity/Campaign_entity/recordcontainers/db/recordfieldmappings/date_end.value/expression.js +++ b/entity/Campaign_entity/recordcontainers/db/recordfieldmappings/date_end.value/expression.js @@ -1,4 +1,12 @@ +import("system.neon"); import("system.result"); +import("system.vars"); -result.string("STEPDATEEND_ALIAS"); \ No newline at end of file +var recordState = vars.get("$sys.recordstate"); + +if (recordState != neon.OPERATINGSTATE_NEW && recordState != neon.OPERATINGSTATE_EDIT) { + result.string("STEPDATEEND_ALIAS"); +} else { + result.string("0"); +} diff --git a/entity/Campaign_entity/recordcontainers/db/recordfieldmappings/date_start.value/expression.js b/entity/Campaign_entity/recordcontainers/db/recordfieldmappings/date_start.value/expression.js index ab23a74c47..77d1b3dde6 100644 --- a/entity/Campaign_entity/recordcontainers/db/recordfieldmappings/date_start.value/expression.js +++ b/entity/Campaign_entity/recordcontainers/db/recordfieldmappings/date_start.value/expression.js @@ -1,4 +1,12 @@ +import("system.neon"); import("system.result"); +import("system.vars"); -result.string("STEPDATESTART_ALIAS"); \ No newline at end of file +var recordState = vars.get("$sys.recordstate"); + +if (recordState != neon.OPERATINGSTATE_NEW && recordState != neon.OPERATINGSTATE_EDIT) { + result.string("STEPDATESTART_ALIAS"); +} else { + result.string("0"); +} \ No newline at end of file diff --git a/neonView/360DegreeFilter_view/360DegreeFilter_view.aod b/neonView/360DegreeFilter_view/360DegreeFilter_view.aod index c0e2ae19ee..87ccd07eaf 100644 --- a/neonView/360DegreeFilter_view/360DegreeFilter_view.aod +++ b/neonView/360DegreeFilter_view/360DegreeFilter_view.aod @@ -15,7 +15,6 @@ <titleField>TITLE</titleField> <descriptionField>DATE</descriptionField> <iconField>ICON</iconField> - <hideContentSearch v="false" /> <entityField>#ENTITY</entityField> <defaultGroupFields> <element>ENTITY_NAME</element> -- GitLab