forked from Deuxfleurs/guichet
Fix creation form
This commit is contained in:
parent
9f891bdb9a
commit
b194b5f7eb
1 changed files with 5 additions and 3 deletions
6
admin.go
6
admin.go
|
@ -539,11 +539,13 @@ func handleAdminCreate(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
if r.Method == "POST" {
|
if r.Method == "POST" {
|
||||||
r.ParseForm()
|
r.ParseForm()
|
||||||
|
if !data.IsTemplated {
|
||||||
data.IdType = strings.Join(r.Form["idtype"], "")
|
data.IdType = strings.Join(r.Form["idtype"], "")
|
||||||
data.IdValue = strings.Join(r.Form["idvalue"], "")
|
|
||||||
data.DisplayName = strings.Join(r.Form["displayname"], "")
|
|
||||||
data.StructuralObjectClass = strings.Join(r.Form["soc"], "")
|
data.StructuralObjectClass = strings.Join(r.Form["soc"], "")
|
||||||
data.ObjectClass = strings.Join(r.Form["oc"], "")
|
data.ObjectClass = strings.Join(r.Form["oc"], "")
|
||||||
|
}
|
||||||
|
data.IdValue = strings.Join(r.Form["idvalue"], "")
|
||||||
|
data.DisplayName = strings.Join(r.Form["displayname"], "")
|
||||||
|
|
||||||
object_class := []string{}
|
object_class := []string{}
|
||||||
for _, oc := range strings.Split(data.ObjectClass, "\n") {
|
for _, oc := range strings.Split(data.ObjectClass, "\n") {
|
||||||
|
|
Loading…
Reference in a new issue