fix: [approval] 전용 폼 선택 시 제목을 항상 양식명으로 설정

This commit is contained in:
김보곤
2026-03-05 23:46:38 +09:00
parent 2bf13cc886
commit 1fef5f16d9

View File

@@ -523,13 +523,11 @@ function applyBodyTemplate(formId) {
// 먼저 폼 모드 전환
switchFormMode(formId);
// 전용 폼이면 제목만 자동 설정하고 body template 적용 건너뜀
// 전용 폼이면 제목을 양식명으로 설정하고 body template 적용 건너뜀
if (isExpenseForm || isLeaveForm || isCertForm || isCareerCertForm) {
const titleEl = document.getElementById('title');
if (!titleEl.value.trim()) {
const formSelect = document.getElementById('form_id');
titleEl.value = formSelect.options[formSelect.selectedIndex].text;
}
const formSelect = document.getElementById('form_id');
titleEl.value = formSelect.options[formSelect.selectedIndex].text;
return;
}