Updated the web handler with updated param binder
This commit is contained in:
2
vendor/code.vikunja.io/web/handler/update.go
generated
vendored
2
vendor/code.vikunja.io/web/handler/update.go
generated
vendored
@ -27,7 +27,7 @@ func (c *WebHandler) UpdateWeb(ctx echo.Context) error {
|
||||
currentStruct := c.EmptyStruct()
|
||||
|
||||
// Get the object & bind params to struct
|
||||
if err := ParamBinder(currentStruct, ctx); err != nil {
|
||||
if err := ctx.Bind(currentStruct); err != nil {
|
||||
return echo.NewHTTPError(http.StatusBadRequest, "No or invalid model provided.")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user