From 03a0d4556fb01d409a5630b3c002e259fe32c407 Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 화, 08 2월 2022 10:49:00 +0900
Subject: [PATCH] - api 이슈 추가시 종료 상태인 상위 이슈에도 추가가 되도록 수정 - 종료 처리된 상위이슈에 하위이슈로 추가 될 경우 상위 이슈를 자동으로 대기 상태로 변경하도록 수정

---
 src/main/webapp/scripts/components/utils/autoComplete.controller.js |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/main/webapp/scripts/components/utils/autoComplete.controller.js b/src/main/webapp/scripts/components/utils/autoComplete.controller.js
index a2e3381..c58387c 100644
--- a/src/main/webapp/scripts/components/utils/autoComplete.controller.js
+++ b/src/main/webapp/scripts/components/utils/autoComplete.controller.js
@@ -229,7 +229,9 @@
                                 if (project.length < 1) {
                                     SweetAlert.swal($filter("translate")("common.failedToIssueListLookUp"), $filter("translate")("common.selectToProjectListLookUp"), "error"); // "�봽濡쒖젥�듃瑜� 癒쇱� �꽑�깮 �빐 二쇱꽭�슂."
                                 }
-                                projectIds.push(project[0].id);
+                                if ($rootScope.isDefined(project[0])) {
+                                    projectIds.push(project[0].id);
+                                }
                             }
                             return projectIds;
                         })()

--
Gitblit v1.8.0