From 9cefc77815ab070cbd6cb410da30307f1df31e34 Mon Sep 17 00:00:00 2001
From: wyu <kknd09321@nate.com>
Date: 월, 03 1월 2022 10:21:21 +0900
Subject: [PATCH] 검색에서 검색된 이슈를 클릭시 상세화면으로 가는데 x누르면 이전 목록이 보이도록 수정

---
 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 07968d8..30b0a5b 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.issueIspFields.length > 0) {
+                            if ($scope.vm.form.issueIspFields != null && $scope.vm.form.issueIspFields.length > 0) {
                                 ispId = $scope.vm.form.ispId;
                             }
                             return ispId;
                         })(),
                         hostingId : (function () {  // Hosting �븘�씠�뵒
                             var hostingId = -1;
-                            if ($scope.vm.form.issueHostingFields.length > 0) {
+                            if ($scope.vm.form.issueHostingFields != null && $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