fix(views): update all fields when updating a view
Resolves https://kolaente.dev/vikunja/vikunja/issues/2241
This commit is contained in:
parent
cc6801c5b1
commit
89e37b88d9
@ -331,7 +331,19 @@ func (p *ProjectView) Update(s *xorm.Session, _ web.Auth) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
_, err = s.ID(p.ID).Update(p)
|
||||
_, err = s.
|
||||
ID(p.ID).
|
||||
Cols(
|
||||
"title",
|
||||
"view_kind",
|
||||
"filter",
|
||||
"position",
|
||||
"bucket_configuration_mode",
|
||||
"bucket_configuration",
|
||||
"default_bucket_id",
|
||||
"done_bucket_id",
|
||||
).
|
||||
Update(p)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user