mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
Use new Bootstrap format for checkboxes
This commit is contained in:
parent
6ac035f196
commit
d9a2b16c2a
3 changed files with 692 additions and 684 deletions
|
@ -493,11 +493,15 @@ func (h *Handler) FetchDocumentData(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
// Get version information for this document.
|
||||
v, err := h.Store.Document.GetVersions(ctx, document.GroupID)
|
||||
if err != nil && err != sql.ErrNoRows {
|
||||
response.WriteServerError(w, method, err)
|
||||
h.Runtime.Log.Error(method, err)
|
||||
return
|
||||
v := []doc.Version{}
|
||||
|
||||
if len(document.GroupID) > 0 {
|
||||
v, err = h.Store.Document.GetVersions(ctx, document.GroupID)
|
||||
if err != nil && err != sql.ErrNoRows {
|
||||
response.WriteServerError(w, method, err)
|
||||
h.Runtime.Log.Error(method, err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// Prepare response.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue