diff options
author | 6543 <6543@obermui.de> | 2021-06-18 01:24:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-18 01:24:55 +0200 |
commit | 75205b5669c86fb1b49daa1805f0987bd5b3cbe2 (patch) | |
tree | 74d560cf981769e01b95661e0dcce6f3f2439705 /modules/convert | |
parent | 29695cd6d511823ab0d233bba8c7971e5dac3e5f (diff) | |
download | gitea-75205b5669c86fb1b49daa1805f0987bd5b3cbe2.tar.gz gitea-75205b5669c86fb1b49daa1805f0987bd5b3cbe2.zip |
Fix some API bugs (#16184)
* Repository object only count releases as releases (fix #16144)
* EditOrg respect RepoAdminChangeTeamAccess option (fix #16013)
Diffstat (limited to 'modules/convert')
-rw-r--r-- | modules/convert/repository.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/convert/repository.go b/modules/convert/repository.go index 9a4fbb97ca..7f3d67137f 100644 --- a/modules/convert/repository.go +++ b/modules/convert/repository.go @@ -91,7 +91,7 @@ func innerToRepo(repo *models.Repository, mode models.AccessMode, isParent bool) return nil } - numReleases, _ := models.GetReleaseCountByRepoID(repo.ID, models.FindReleasesOptions{IncludeDrafts: false, IncludeTags: true}) + numReleases, _ := models.GetReleaseCountByRepoID(repo.ID, models.FindReleasesOptions{IncludeDrafts: false, IncludeTags: false}) mirrorInterval := "" if repo.IsMirror { |