Skip to content

Commit

Permalink
[ACS-5898] prevent custom task filters from always sending due after …
Browse files Browse the repository at this point in the history
…date (#8847)

* ACS-5898 prevent custom task filters from always sending due after date, build custom filters form without initial values

* ACS-5898 revert setDueAfterFilter method removal, make its use conditional
  • Loading branch information
g-jaskowski committed Aug 24, 2023
1 parent de16072 commit 87e5727
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,19 @@ export class TaskListDemoComponent implements OnInit, OnDestroy {
buildForm() {
this.taskListForm = this.formBuilder.group({
taskAppId: new UntypedFormControl(this.defaultAppId, [Validators.pattern('^[0-9]*$')]),
taskName: new UntypedFormControl(''),
taskId: new UntypedFormControl(''),
taskProcessDefinitionId: new UntypedFormControl(''),
taskProcessInstanceId: new UntypedFormControl(''),
taskAssignment: new UntypedFormControl(''),
taskState: new UntypedFormControl(''),
taskSort: new UntypedFormControl(''),
taskSize: new UntypedFormControl('', [Validators.pattern('^[0-9]*$'), Validators.min(this.minValue)]),
taskPage: new UntypedFormControl('', [Validators.pattern('^[0-9]*$'), Validators.min(this.minValue)]),
taskDueAfter: new UntypedFormControl(''),
taskDueBefore: new UntypedFormControl(''),
taskStart: new UntypedFormControl('', [Validators.pattern('^[0-9]*$')]),
taskIncludeProcessInstance: new UntypedFormControl('')
taskName: new UntypedFormControl(),
taskId: new UntypedFormControl(),
taskProcessDefinitionId: new UntypedFormControl(),
taskProcessInstanceId: new UntypedFormControl(),
taskAssignment: new UntypedFormControl(),
taskState: new UntypedFormControl(),
taskSort: new UntypedFormControl(),
taskSize: new UntypedFormControl(null, [Validators.pattern('^[0-9]*$'), Validators.min(this.minValue)]),
taskPage: new UntypedFormControl(null, [Validators.pattern('^[0-9]*$'), Validators.min(this.minValue)]),
taskDueAfter: new UntypedFormControl(),
taskDueBefore: new UntypedFormControl(),
taskStart: new UntypedFormControl(null, [Validators.pattern('^[0-9]*$')]),
taskIncludeProcessInstance: new UntypedFormControl()
});

this.taskListForm.valueChanges
Expand All @@ -142,7 +142,7 @@ export class TaskListDemoComponent implements OnInit, OnDestroy {
this.state = taskFilter.taskState;
this.sort = taskFilter.taskSort;
this.start = taskFilter.taskStart;
this.dueAfter = this.setDueAfterFilter(taskFilter.taskDueAfter);
this.dueAfter = taskFilter.taskDueAfter ? this.setDueAfterFilter(taskFilter.taskDueAfter) : null;
this.dueBefore = taskFilter.taskDueBefore;

if (taskFilter.taskSize) {
Expand Down

0 comments on commit 87e5727

Please sign in to comment.