Fix shared lists showing up twice
This commit is contained in:
parent
156e50f371
commit
67167d4abb
2 changed files with 28 additions and 1 deletions
|
|
@ -550,6 +550,10 @@ func (n *Namespace) ReadAll(s *xorm.Session, a web.Auth, search string, page int
|
|||
}
|
||||
|
||||
for _, list := range lists {
|
||||
if list.NamespaceID == SharedListsPseudoNamespace.ID {
|
||||
// Shared lists are already in the namespace
|
||||
continue
|
||||
}
|
||||
namespaces[list.NamespaceID].Lists = append(namespaces[list.NamespaceID].Lists, list)
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue