diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-07 20:36:00 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-07 20:36:00 -0400 |
commit | 495d939ca580825c4a91612e38107ecc4339598a (patch) | |
tree | c24702996f29f5e39a2c0e87433837d9b3fe26c0 | |
parent | 7d89e765ab499bb861d83e5e2a3fb1d1ee11cd75 (diff) | |
download | gitea-495d939ca580825c4a91612e38107ecc4339598a.tar.gz gitea-495d939ca580825c4a91612e38107ecc4339598a.zip |
Waiting for UI
-rw-r--r-- | models/issue.go | 2 | ||||
-rw-r--r-- | routers/repo/issue.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go index f052730059..14faa5b31f 100644 --- a/models/issue.go +++ b/models/issue.go @@ -128,6 +128,8 @@ func GetIssues(uid, rid, pid, mid int64, page int, isClosed bool, labels, sortTy sess.Desc("num_comments") case "leastcomment": sess.Asc("num_comments") + case "priority": + sess.Desc("priority") default: sess.Desc("created") } diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 31827f2d04..da34c03c25 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -66,7 +66,7 @@ func Issues(ctx *middleware.Context) { } // Get issue-user pairs. - pairs, err := models.GetIssueUserPairs(ctx.Repo.Repository.Id, ctx.User.Id, isShowClosed) + pairs, err := models.GetIssueUserPairs(ctx.Repo.Repository.Id, posterId, isShowClosed) if err != nil { ctx.Handle(500, "issue.Issues(GetIssueUserPairs): %v", err) return |