瀏覽代碼

Leave non-dated issues for last (#8871)

tags/v1.11.0-rc1
guillep2k 4 年之前
父節點
當前提交
a647a54a08
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      models/issue.go

+ 2
- 1
models/issue.go 查看文件

@@ -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…
取消
儲存