fix(projects): reset pagination limit when fetching subprojects
This commit is contained in:
parent
a86518da71
commit
e3842b6df7
@ -438,6 +438,9 @@ func getAllProjectsForUser(s *xorm.Session, userID int64, parentProjectIDs []int
|
||||
|
||||
*projects = append(*projects, currentProjects...)
|
||||
|
||||
// If we don't reset the limit for subprojects, it will be impossible to fetch all subprojects.
|
||||
opts.page = -1
|
||||
|
||||
return getAllProjectsForUser(s, userID, newParentIDs, opts, projects, oldTotalCount+totalCount)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user