diff --git a/projects/workflows-creator/src/lib/builder/builder.component.ts b/projects/workflows-creator/src/lib/builder/builder.component.ts index 22b2e0a..7240cba 100644 --- a/projects/workflows-creator/src/lib/builder/builder.component.ts +++ b/projects/workflows-creator/src/lib/builder/builder.component.ts @@ -23,6 +23,7 @@ import {AbstractBaseGroup} from '../classes/nodes'; import {BuilderService, ElementService, NodeService} from '../classes/services'; import { ActionTypes, + ConditionTypes, EventTypes, LocalizedStringKeys, NodeTypes, @@ -459,8 +460,16 @@ export class BuilderComponent implements OnInit, OnChanges { case EventTypes.OnValueEvent: case ActionTypes.ChangeColumnValueAction: const columnExists = !!node.node.state.get('column'); - const valueExists = - typeof node.node.state.get('value') !== 'undefined'; + let valueExists = false; + if (typeof node.node.state.get('value') !== 'undefined') { + valueExists = true; + } else if ( + node.node.state.get('condition') === ConditionTypes.PastToday + ) { + valueExists = true; + } else { + valueExists = !!node.node.state.get('value'); + } const valueTypeIsAnyValue = node.node.state.get('valueType') === ValueTypes.AnyValue; isValid = columnExists && (valueExists || valueTypeIsAnyValue); diff --git a/projects/workflows-element/package.json b/projects/workflows-element/package.json index 694e82e..9253753 100644 --- a/projects/workflows-element/package.json +++ b/projects/workflows-element/package.json @@ -17,5 +17,6 @@ "access": "public", "directory": "dist" }, - "hash": "e633c5b62116521580e1a5d3b744b4c25c8f4b74c6b54d008cb5a5a601dd1d92" + "hash": "52e16f7339ae099b920d5eba85c8551b9ac2178d0fdb8c34eb6eb6de8aa96685" + } \ No newline at end of file