mirror of
https://github.com/go-gitea/gitea.git
synced 2024-10-30 05:52:42 +00:00
Leave non-dated issues for last (#8871)
This commit is contained in:
parent
1f3ba6919d
commit
a647a54a08
@ -1075,7 +1075,8 @@ func sortIssuesSession(sess *xorm.Session, sortType string, priorityRepoID int64
|
||||
case "priority":
|
||||
sess.Desc("issue.priority")
|
||||
case "nearduedate":
|
||||
sess.Asc("issue.deadline_unix")
|
||||
// 253370764800 is 01/01/9999 @ 12:00am (UTC)
|
||||
sess.OrderBy("CASE WHEN issue.deadline_unix = 0 THEN 253370764800 ELSE issue.deadline_unix END ASC")
|
||||
case "farduedate":
|
||||
sess.Desc("issue.deadline_unix")
|
||||
case "priorityrepo":
|
||||
|
Loading…
Reference in New Issue
Block a user