From 3bdf2a1f2757de8ab6570508385d89124243943c Mon Sep 17 00:00:00 2001 From: 이민희 <mhlee@maprex.co.kr> Date: 금, 10 12월 2021 15:34:13 +0900 Subject: [PATCH] 일반회원 대시보드 오류 해결 --- src/main/webapp/scripts/app/common/common.controller.js | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/scripts/app/common/common.controller.js b/src/main/webapp/scripts/app/common/common.controller.js index 4216e9c..611a551 100644 --- a/src/main/webapp/scripts/app/common/common.controller.js +++ b/src/main/webapp/scripts/app/common/common.controller.js @@ -51,9 +51,9 @@ }); $scope.$on("changedLastProject", function () { - if ($rootScope.workProject != null) { + //if ($rootScope.workProject != null) { $scope.fn.findIssueList($rootScope.workProject.id); - } + //} }); function setLastIssueType() { @@ -80,6 +80,8 @@ // sidebar �겢由��떆 �봽濡쒖젥�듃 �븘�씠�뵒 �꽕�젙 if (changeProject) { + + $rootScope.$broadcast("changedIssueListMenu", $rootScope.issueTypeMenu); $rootScope.changeLastProject($rootScope.issueTypeMenu.projectVo.id, false, false); if ($rootScope.issueTypeMenu != null) { @@ -87,11 +89,11 @@ } } //moveMenu("issues.list"); - //$rootScope.$broadcast("changeIssueListMenu", $rootScope.issueTypeMenu); if ($rootScope.user.lastIssueTypeId !== issueTypeId) { $scope.fn.setLastIssueType(issueTypeId); } + } @@ -260,7 +262,7 @@ if (issueType.id === $rootScope.user.lastIssueTypeId) { selectIssueTypeId = issueType.id; $scope.fn.changeIssueListMenu(issueType.id, false); - $state.go('dashboards.dashboard'); + // $state.go('dashboards.dashboard'); } if (selectIssueTypeId == null) { -- Gitblit v1.8.0