fix(M02): 프로젝트 표 저장은 양식 + 손 값만 — 설계값 · 펼친 열은 서버가 걸러 버림 · 없어진 측점 손 값은 맨 아래 비고 줄 (PLAN 10-4)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LuapLYqN1GGFD8Y1PStD5
This commit is contained in:
2026-09-25 10:12:55 +09:00
co-authored by Claude Opus 5.5
parent 9ca31ef7e8
commit b87bac729b
4 changed files with 142 additions and 4 deletions
@@ -252,13 +252,17 @@ async def save_layer_template(
session: dict[str, Any] = Depends(verify_session),
) -> dict[str, Any]:
folder = await _layer_dir(session, layer, project_id=project_id, write=True)
document = body.문서
if kind == "table" and fill.is_fillable(document):
# 채운 표가 와도 설계값은 안 받아 적음 — 양식 + 손 값만(5장 · 브라우저 값을 믿지 않음)
document = fill.strip_design(document)
try:
version = await asyncio.to_thread(
layers.write_template,
folder,
kind,
name,
body.문서,
document,
version=body.판,
check_version=True,
)