diff --git a/server/api/documents.js b/server/api/documents.js index c36f1f9add..d989449f4d 100644 --- a/server/api/documents.js +++ b/server/api/documents.js @@ -734,6 +734,7 @@ router.post("documents.create", auth(), async ctx => { lastModifiedById: user.id, createdById: user.id, template, + templateId: templateDocument ? templateDocument.id : undefined, title: templateDocument ? templateDocument.title : title, text: templateDocument ? templateDocument.text : text, });