summaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-03-28 00:05:49 +0200
committerThomas Boerger <thomas@webhippie.de>2016-03-28 00:05:49 +0200
commit746c7fd4e74e03cfbb0239308e0f1ba8e43eecc2 (patch)
treed5ea085a9be2ac2d93f3418ea63249c39c64ab2c /models/issue.go
parent7f26ae0b4571e489001395f72021e06779ff8513 (diff)
downloadgitea-746c7fd4e74e03cfbb0239308e0f1ba8e43eecc2.tar.gz
gitea-746c7fd4e74e03cfbb0239308e0f1ba8e43eecc2.zip
Followup fix for previous query fix
Diffstat (limited to 'models/issue.go')
-rw-r--r--models/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go
index f70fd1247b..8b37a24f11 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -552,10 +552,10 @@ func Issues(opts *IssuesOptions) ([]*Issue, error) {
}
if opts.IsMention {
- sess.Join("INNER", "issue_user", "issue.id = issue_user.issue_id AND issue_user.is_mentioned = 1")
+ sess.Join("INNER", "issue_user", "issue.id = issue_user.issue_id").And("issue_user.is_mentioned = ?", true)
if opts.UserID > 0 {
- sess.Where("issue_user.uid = ?", opts.UserID)
+ sess.And("issue_user.uid = ?", opts.UserID)
}
}