1
0

Small link share fixes (#96)

This commit is contained in:
konrad
2019-09-07 13:19:23 +00:00
committed by Gitea
parent 158ad631e1
commit fdd1624121
4 changed files with 28 additions and 10 deletions

View File

@ -156,12 +156,12 @@ func (t *Task) ReadAll(search string, a web.Auth, page int) (interface{}, error)
shareAuth, is := a.(*LinkSharing)
if is {
shareAuth.List = &List{ID: shareAuth.ListID}
err := shareAuth.List.GetSimpleByID()
list := &List{ID: shareAuth.ListID}
err := list.GetSimpleByID()
if err != nil {
return nil, err
}
return getTasksForLists([]*List{shareAuth.List}, taskopts)
return getTasksForLists([]*List{list}, taskopts)
}
// Get all lists for the user