염성찬 염성찬 22 hours ago
메뉴관리 메뉴노출 권한 저장/표시 오류 수정
- 메뉴노출 체크박스 id 줄바꿈으로 저장된 권한이 체크되지 않던 문제 수정
- 메뉴타입이 없는 메뉴(하위메뉴 있음) 저장 시 NullPointerException 수정
- 메뉴 생성 시 메뉴타입 M 지정
@61122cfa33b4ddda29411ab6fb707eb5e0fe0bf5
src/main/java/kcc/let/sym/mnu/mcm/web/EgovMenuCreateManageController.java
--- src/main/java/kcc/let/sym/mnu/mcm/web/EgovMenuCreateManageController.java
+++ src/main/java/kcc/let/sym/mnu/mcm/web/EgovMenuCreateManageController.java
@@ -399,6 +399,7 @@
 			menuManageVO.setRelateImagePath("/"); //임시
 			menuManageVO.setRelateImageNm("/"); //임시
 			menuManageVO.setProgrmFileNm("dir"); //임시
+			menuManageVO.setMenuType("M"); //임시(dir 이므로 메뉴 타입)
 			menuManageVO.setMenuUserType("U"); //임시
 			
 			{ //동급 레벨 번호 조회
@@ -564,9 +565,9 @@
 		MenuManageVO tmpMenuManageVO = menuManageService.selectMenuManage(menuManageVO);
 		//하위노드가 있는 메뉴의 경우 타입을 변경 하지 못하도록 수정
 		if(
-			menuCreatVO.getExistChildNode().equals("Y")
-			&& !tmpMenuManageVO.getMenuType().equals(menuManageVO.getMenuType())
-			&& "M".equals(tmpMenuManageVO.getMenuType())) {
+			"Y".equals(menuCreatVO.getExistChildNode())
+			&& "M".equals(tmpMenuManageVO.getMenuType())
+			&& !"M".equals(menuManageVO.getMenuType())) {
 				modelAndView.addObject("status", "menuInNode");
 				return modelAndView;
 		}
src/main/webapp/WEB-INF/jsp/sym/mnu/mpm/EgovMenuCreatSelectJtree.jsp
--- src/main/webapp/WEB-INF/jsp/sym/mnu/mpm/EgovMenuCreatSelectJtree.jsp
+++ src/main/webapp/WEB-INF/jsp/sym/mnu/mpm/EgovMenuCreatSelectJtree.jsp
@@ -1050,16 +1050,12 @@
 																					value="${authorList.authorCode}" />
 																				<label for="${authorList.authorCode}">
 																					${authorList.authorNm} </label> --%>
-																				<label for="<c:out value="
-																					${authorList.authorCode}" />"
-																				class="checkbox_item">
+																				<label for="<c:out value="${authorList.authorCode}" />" class="checkbox_item">
 																				<input name="authorChkList"
-																					id="<c:out value="
-																					${authorList.authorCode}" />"
-																				title="Check
-																				<c:out value="${status.count}" />"
-																				type="checkbox"
-																				value="${authorList.authorCode}"/>
+																					id="<c:out value="${authorList.authorCode}" />"
+																					title="Check <c:out value="${status.count}" />"
+																					type="checkbox"
+																					value="${authorList.authorCode}"/>
 																				<c:out value="${authorList.authorNm}" />
 																				(
 																				<c:out
Add a comment
List