260617_01_ENH: 문자 줄바꿈 저장 되게 수정
This commit is contained in:
@@ -84,12 +84,14 @@ public class TemplateController {
|
||||
@Valid @RequestBody TemplateDto template,
|
||||
RequestUserContext ctx
|
||||
) {
|
||||
String newHtml = fileService.syncOnSave(
|
||||
template.getItrntPrjctCd(),
|
||||
template.getTmplatIdx(),
|
||||
template.getTmplatBody()
|
||||
);
|
||||
template.setTmplatBody(newHtml);
|
||||
if (template.getTmplatTy() == SendType.EMAIL) {
|
||||
String newHtml = fileService.syncOnSave(
|
||||
template.getItrntPrjctCd(),
|
||||
template.getTmplatIdx(),
|
||||
template.getTmplatBody()
|
||||
);
|
||||
template.setTmplatBody(newHtml);
|
||||
}
|
||||
|
||||
return templateService.updateTemplate(template, ctx.getUserId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user