Make sure list / task favorites are set per user, not per entity #915
|
@ -547,6 +547,13 @@ func (n *Namespace) ReadAll(s *xorm.Session, a web.Auth, search string, page int
|
||||||
lists = append(lists, savedFiltersNamespace.Lists...)
|
lists = append(lists, savedFiltersNamespace.Lists...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/////////////////
|
||||||
|
// Add list details (favorite state, among other things
|
||||||
|
err = addListDetails(s, lists, a)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
/////////////////
|
/////////////////
|
||||||
// Favorite lists
|
// Favorite lists
|
||||||
|
|
||||||
|
@ -562,11 +569,6 @@ func (n *Namespace) ReadAll(s *xorm.Session, a web.Auth, search string, page int
|
||||||
//////////////////////
|
//////////////////////
|
||||||
// Put it all together
|
// Put it all together
|
||||||
|
|
||||||
err = addListDetails(s, lists, a)
|
|
||||||
if err != nil {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, list := range lists {
|
for _, list := range lists {
|
||||||
if list.NamespaceID == SharedListsPseudoNamespace.ID || list.NamespaceID == SavedFiltersPseudoNamespace.ID {
|
if list.NamespaceID == SharedListsPseudoNamespace.ID || list.NamespaceID == SavedFiltersPseudoNamespace.ID {
|
||||||
// Shared lists and filtered lists are already in the namespace
|
// Shared lists and filtered lists are already in the namespace
|
||||||
|
|
Loading…
Reference in New Issue
Block a user