mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
wip
This commit is contained in:
parent
33a66c87cf
commit
7c34053e3d
25 changed files with 4884 additions and 3729 deletions
|
@ -126,8 +126,7 @@ func SaveAsTemplate(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
// Duplicate attachments
|
||||
attachments, err := p.GetAttachments(model.DocumentID)
|
||||
|
||||
attachments, _ := p.GetAttachments(model.DocumentID)
|
||||
for i, a := range attachments {
|
||||
a.DocumentID = docID
|
||||
a.RefID = util.UniqueID()
|
||||
|
@ -358,8 +357,8 @@ func StartDocumentFromSavedTemplate(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
pages, err = p.GetPages(templateID)
|
||||
attachments, err = p.GetAttachmentsWithData(templateID)
|
||||
pages, _ = p.GetPages(templateID)
|
||||
attachments, _ = p.GetAttachmentsWithData(templateID)
|
||||
}
|
||||
|
||||
// create new document
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue