From 746c7fd4e74e03cfbb0239308e0f1ba8e43eecc2 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Mon, 28 Mar 2016 00:05:49 +0200 Subject: [PATCH] Followup fix for previous query fix --- models/issue.go | 4 ++-- 1 file 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) } }