| | |
| | | if ($scope.vm.activeTarget != null) { |
| | | var targetIssueStatus = $scope.vm.activeTarget.issueStatus; |
| | | |
| | | var myIssueStatus = null; |
| | | angular.forEach($scope.vm.issueStatusVos, function (issueStatusVo) { |
| | | if (issueStatusVo.id === targetIssueStatus.id) { |
| | | myIssueStatus = issueStatusVo; |
| | | } |
| | | }); |
| | | // null 체크 |
| | | if (targetIssueStatus != null) { |
| | | var myIssueStatus = null; |
| | | angular.forEach($scope.vm.issueStatusVos, function (issueStatusVo) { |
| | | if (issueStatusVo.id === targetIssueStatus.id) { |
| | | myIssueStatus = issueStatusVo; |
| | | } |
| | | }); |
| | | |
| | | if (myIssueStatus != null) { |
| | | if ($scope.vm.departments != null) { |
| | | var workflowDepartments = []; |
| | | if (myIssueStatus != null) { |
| | | if ($scope.vm.departments != null) { |
| | | var workflowDepartments = []; |
| | | |
| | | angular.forEach($scope.vm.departments, function (department) { |
| | | var workflowDepartment = { |
| | | departmentVo : department |
| | | } |
| | | workflowDepartments.push(workflowDepartment); |
| | | }); |
| | | myIssueStatus.workflowDepartmentVos = workflowDepartments; |
| | | angular.forEach($scope.vm.departments, function (department) { |
| | | var workflowDepartment = { |
| | | departmentVo : department |
| | | } |
| | | workflowDepartments.push(workflowDepartment); |
| | | }); |
| | | myIssueStatus.workflowDepartmentVos = workflowDepartments; |
| | | } |
| | | } |
| | | } |
| | | } |