fix: do not skip properties on creating templates (#5060)

* fix: do not skip properties while creating templates

* test: empty edit
This commit is contained in:
Marcin Tojek
2022-11-14 15:32:18 +01:00
committed by GitHub
parent 4b3d211e00
commit cf5d48bb5a
3 changed files with 104 additions and 2 deletions
+2
View File
@@ -239,6 +239,8 @@ func (api *API) postTemplateByOrganization(rw http.ResponseWriter, r *http.Reque
GroupACL: database.TemplateACL{
organization.ID.String(): []rbac.Action{rbac.ActionRead},
},
DisplayName: createTemplate.DisplayName,
Icon: createTemplate.Icon,
})
if err != nil {
return xerrors.Errorf("insert template: %s", err)