From 9669341e52f11c1c1308041233be44da7a4a0f47 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 월, 10 1월 2022 12:44:28 +0900
Subject: [PATCH] 이슈 삭제 메세지 오류 해결

---
 src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js b/src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js
index 7db0a29..8da6eeb 100644
--- a/src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js
+++ b/src/main/webapp/scripts/app/companyField/companyFieldAdd.controller.js
@@ -21,9 +21,10 @@
                 $scope.vm = {
                     form : {
                         name : "",  //�뾽泥대챸
+                        ispId : "",
                         ispName : "",
-                        hostingId : "",
                         hostingName : "",
+                        hostingId : "",
                         manager : "",   //�떞�떦�옄
                         tel : "",  //�쟾�솕踰덊샇
                         email : "",  //�씠硫붿씪
@@ -71,6 +72,8 @@
                     $scope.vm.form.hostingId = result[0].id;
                 });
 
+
+
                 //  �뤌 �쟾�넚
                 function formSubmit(condition) {
                     $rootScope.spinner = true;
@@ -79,14 +82,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) {
                                 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) {
                                 hostingId = $scope.vm.form.hostingId;
                             }
                             return hostingId;
@@ -121,9 +124,7 @@
                     $uibModalInstance.dismiss('cancel');
                     $(document).unbind("keydown");  //  �떒異뺥궎 �씠踰ㅽ듃 �젣嫄�
                 }
-
             }
-
         ]);
     }
 );
\ No newline at end of file

--
Gitblit v1.8.0