1
0
Fork 0
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:
Harvey Kandola 2018-03-20 10:41:11 +00:00
parent 6ac035f196
commit d9a2b16c2a
3 changed files with 692 additions and 684 deletions

View file

@ -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.