From dc9b09a4ee390db471ba8b7dedc375a9c7e72ad3 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 월, 13 12월 2021 15:56:49 +0900
Subject: [PATCH] - 연관이슈 검색 시 다른 이슈 유형(다른 프로젝트)의 이슈도 검색 가능 하도록 수정 - 부서 삭제 코드 약간 수정

---
 src/main/webapp/scripts/app/companyField/companyFieldModify.controller.js |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/scripts/app/companyField/companyFieldModify.controller.js b/src/main/webapp/scripts/app/companyField/companyFieldModify.controller.js
index 9b4576a..7a452d3 100644
--- a/src/main/webapp/scripts/app/companyField/companyFieldModify.controller.js
+++ b/src/main/webapp/scripts/app/companyField/companyFieldModify.controller.js
@@ -84,14 +84,14 @@
                         name : $rootScope.preventXss($scope.vm.form.name),
                         ispId : (function () {  // ISP �븘�씠�뵒
                             var ispId = -1;
-                            if ($scope.vm.form.ispId != null) {
+                            if ($scope.vm.form.issueIspFields.length > 0) {
                                 ispId = $scope.vm.form.ispId;
                             }
                             return ispId;
                         })(),
                         hostingId : (function () {  // Hosting �븘�씠�뵒
                             var hostingId = -1;
-                            if ($scope.vm.form.hostingId != null) {
+                            if ($scope.vm.form.issueHostingFields.length > 0) {
                                 hostingId = $scope.vm.form.hostingId;
                             }
                             return hostingId;
@@ -149,8 +149,12 @@
                                 $scope.vm.form.tel = result.data.content.tel;
                                 $scope.vm.form.url = result.data.content.url;
                                 $scope.vm.form.memo = result.data.content.memo;
-                                $scope.vm.form.ispName = result.data.content.ispFieldVo.name;
-                                $scope.vm.form.hostingName = result.data.content.hostingFieldVo.name;
+                                if(result.data.content.ispFieldVo != null){
+                                    $scope.vm.form.ispName = result.data.content.ispFieldVo.name;
+                                }
+                                if(result.data.content.hostingFieldVo != null){
+                                    $scope.vm.form.hostingName = result.data.content.hostingFieldVo.name;
+                                }
                             }
                         }
                         else {

--
Gitblit v1.8.0