diff options
author | yp05327 <576951401@qq.com> | 2023-07-12 03:47:50 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-11 20:47:50 +0200 |
commit | 44572e924347420d3e11823b93921e01a5529959 (patch) | |
tree | 83e8361c259c94318b97a8d1645025d4294a3e42 /routers/web/org | |
parent | 491cc06ffe3491242ad9ff6227423d99e673d0c2 (diff) | |
download | gitea-44572e924347420d3e11823b93921e01a5529959.tar.gz gitea-44572e924347420d3e11823b93921e01a5529959.zip |
Fix incorrect oldest sort in project list (#25806)
sort type `oldest` should be `Asc`.
Added a test for this.
Diffstat (limited to 'routers/web/org')
-rw-r--r-- | routers/web/org/projects.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go index 21cb23000d..60032c777d 100644 --- a/routers/web/org/projects.go +++ b/routers/web/org/projects.go @@ -62,7 +62,7 @@ func Projects(ctx *context.Context) { OwnerID: ctx.ContextUser.ID, Page: page, IsClosed: util.OptionalBoolOf(isShowClosed), - SortType: sortType, + OrderBy: project_model.GetSearchOrderByBySortType(sortType), Type: projectType, }) if err != nil { |