From bae1d655640d901345c18ec9689fd33eaf0a9760 Mon Sep 17 00:00:00 2001 From: estetsenko Date: Wed, 24 Dec 2014 20:47:45 +0300 Subject: [PATCH] bugfix: Unable to assign any issue myself --- models/issue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/issue.go b/models/issue.go index 8004647c7221..c756e497598c 100644 --- a/models/issue.go +++ b/models/issue.go @@ -472,8 +472,8 @@ func UpdateIssueUserPairByAssignee(aid, iid int64) error { if aid == 0 { return nil } - rawSql = "UPDATE `issue_user` SET is_assigned = true WHERE uid = ? AND issue_id = ?" - _, err := x.Exec(rawSql, aid, iid) + rawSql = "UPDATE `issue_user` SET is_assigned = ? WHERE uid = ? AND issue_id = ?" + _, err := x.Exec(rawSql, true, aid, iid) return err }