fix(projects): reset pagination limit when fetching subprojects

This commit is contained in:
kolaente 2023-06-06 17:24:27 +02:00
parent a86518da71
commit e3842b6df7
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

@ -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)
}