mirror of https://github.com/go-gitea/gitea.git
Backport #20070 Just get all tags when creating the compare dropdown. (Also updates the changelog.) Fix #19936
This commit is contained in:
parent
a7b1e20b76
commit
51db7b03dd
|
@ -4,9 +4,10 @@ This changelog goes through all the changes that have been made in each release
|
||||||
without substantial changes to our git log; to see the highlights of what has
|
without substantial changes to our git log; to see the highlights of what has
|
||||||
been added to each release, please refer to the [blog](https://blog.gitea.io).
|
been added to each release, please refer to the [blog](https://blog.gitea.io).
|
||||||
|
|
||||||
## [1.16.9](https://github.com/go-gitea/gitea/releases/tag/1.16.9) - 2022-06-20
|
## [1.16.9](https://github.com/go-gitea/gitea/releases/tag/v1.16.9) - 2022-06-21
|
||||||
|
|
||||||
* BUGFIXES
|
* BUGFIXES
|
||||||
|
* Release page show all tags in compare dropdown (#20070) (#20071)
|
||||||
* Fix permission check for delete tag (#19985) (#20001)
|
* Fix permission check for delete tag (#19985) (#20001)
|
||||||
* Only log non ErrNotExist errors in git.GetNote (#19884) (#19905)
|
* Only log non ErrNotExist errors in git.GetNote (#19884) (#19905)
|
||||||
* Use exact search instead of fuzzy search for branch filter dropdown (#19885) (#19893)
|
* Use exact search instead of fuzzy search for branch filter dropdown (#19885) (#19893)
|
||||||
|
|
|
@ -98,7 +98,14 @@ func releasesOrTags(ctx *context.Context, isTagList bool) {
|
||||||
listOptions.PageSize = setting.API.MaxResponseItems
|
listOptions.PageSize = setting.API.MaxResponseItems
|
||||||
}
|
}
|
||||||
|
|
||||||
tags, err := ctx.Repo.GitRepo.GetTags(listOptions.GetStartEnd())
|
// TODO(20073) tags are used for compare feature witch needs all tags
|
||||||
|
// filtering is doen at the client side atm
|
||||||
|
tagListStart, tagListEnd := 0, 0
|
||||||
|
if isTagList {
|
||||||
|
tagListStart, tagListEnd = listOptions.GetStartEnd()
|
||||||
|
}
|
||||||
|
|
||||||
|
tags, err := ctx.Repo.GitRepo.GetTags(tagListStart, tagListEnd)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.ServerError("GetTags", err)
|
ctx.ServerError("GetTags", err)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue