[ADF-2492] Task without a form is not displayed when the assignment is preselected on APS (#3093)

* [ADF-2492] Task without a form is not displayed when assignment is preselected on APS

* Fixed  task without a form is not displayed when assignment is preselected on APS

* * Added testcases for the recent changes
This commit is contained in:
siva kumar
2018-03-20 06:30:23 +05:30
committed by Eugenio Romano
parent a5055128b8
commit c06cf28769
4 changed files with 56 additions and 3 deletions

View File

@@ -289,7 +289,7 @@ export class TaskDetailsComponent implements OnInit, OnChanges {
}
isAssignedToMe(): boolean {
return this.taskDetails.assignee.email === this.authService.getBpmUsername();
return this.isAssigned() ? this.taskDetails.assignee.email === this.authService.getBpmUsername() : false;
}
isCompleteButtonEnabled(): boolean {