mirror of
https://github.com/documize/community.git
synced 2025-07-23 23:29:42 +02:00
i18n fixes
This commit is contained in:
parent
e56263564c
commit
6c8b10753d
11 changed files with 18 additions and 17 deletions
|
@ -93,6 +93,7 @@ func (h *Handler) SavedList(w http.ResponseWriter, r *http.Request) {
|
|||
func (h *Handler) SaveAs(w http.ResponseWriter, r *http.Request) {
|
||||
method := "template.saved"
|
||||
ctx := domain.GetRequestContext(r)
|
||||
unseq := doc.Unsequenced
|
||||
|
||||
if !h.Runtime.Product.IsValid(ctx) {
|
||||
response.WriteBadLicense(w)
|
||||
|
@ -149,6 +150,7 @@ func (h *Handler) SaveAs(w http.ResponseWriter, r *http.Request) {
|
|||
doc.ID = 0
|
||||
doc.Template = true
|
||||
doc.Lifecycle = workflow.LifecycleLive
|
||||
doc.Sequence = unseq
|
||||
|
||||
// Duplicate pages and associated meta
|
||||
pages, err := h.Store.Page.GetPages(ctx, model.DocumentID)
|
||||
|
@ -342,6 +344,7 @@ func (h *Handler) Use(w http.ResponseWriter, r *http.Request) {
|
|||
d.SpaceID = spaceID
|
||||
d.UserID = ctx.UserID
|
||||
d.Name = docTitle
|
||||
d.Sequence = doc.Unsequenced
|
||||
|
||||
if h.Runtime.Product.Edition == domain.CommunityEdition {
|
||||
d.Lifecycle = workflow.LifecycleLive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue