mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
wip
This commit is contained in:
parent
33a66c87cf
commit
7c34053e3d
25 changed files with 4884 additions and 3729 deletions
|
@ -68,8 +68,8 @@ func AddFolder(w http.ResponseWriter, r *http.Request) {
|
|||
id := util.UniqueID()
|
||||
folder.RefID = id
|
||||
folder.OrgID = p.Context.OrgID
|
||||
err = addFolder(p, &folder)
|
||||
|
||||
err = addFolder(p, &folder)
|
||||
if err != nil {
|
||||
log.IfErr(tx.Rollback())
|
||||
writeGeneralSQLError(w, method, err)
|
||||
|
@ -78,10 +78,9 @@ func AddFolder(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
log.IfErr(tx.Commit())
|
||||
|
||||
folder, err = p.GetLabel(id)
|
||||
folder, _ = p.GetLabel(id)
|
||||
|
||||
json, err := json.Marshal(folder)
|
||||
|
||||
if err != nil {
|
||||
writeJSONMarshalError(w, method, "folder", err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue