Remove a redundant handling of service’s form while editing
This commit is contained in:
parent
a0f9c10193
commit
c3c349fadf
|
@ -234,12 +234,6 @@ func editService(w http.ResponseWriter, r *http.Request, user *auth.User, compan
|
||||||
}
|
}
|
||||||
return translateService(ctx, tx, company, f)
|
return translateService(ctx, tx, company, f)
|
||||||
})
|
})
|
||||||
if ok, err := form.Handle(f, w, r, user); err != nil {
|
|
||||||
return
|
|
||||||
} else if !ok {
|
|
||||||
f.MustRender(w, r, user, company)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
httplib.Redirect(w, r, "/admin/services", http.StatusSeeOther)
|
httplib.Redirect(w, r, "/admin/services", http.StatusSeeOther)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue