Fix incorrect oldest sort in project list (#25806)
sort type `oldest` should be `Asc`. Added a test for this.
This commit is contained in:
parent
491cc06ffe
commit
44572e9243
5 changed files with 64 additions and 15 deletions
|
@ -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 {
|
||||
|
|
|
@ -74,7 +74,7 @@ func Projects(ctx *context.Context) {
|
|||
RepoID: repo.ID,
|
||||
Page: page,
|
||||
IsClosed: util.OptionalBoolOf(isShowClosed),
|
||||
SortType: sortType,
|
||||
OrderBy: project_model.GetSearchOrderByBySortType(sortType),
|
||||
Type: project_model.TypeRepository,
|
||||
})
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue