diff options
author | estetsenko <Stetsenkoem@gmail.com> | 2014-12-24 20:47:45 +0300 |
---|---|---|
committer | estetsenko <Stetsenkoem@gmail.com> | 2014-12-24 20:47:45 +0300 |
commit | bae1d655640d901345c18ec9689fd33eaf0a9760 (patch) | |
tree | 57116af3725e0aed3cb4e66b3fb0a09c44f1b29f /models/issue.go | |
parent | c0cfd62b9007122f78f28f4dbbe3c3eeeee5b02b (diff) | |
download | gitea-bae1d655640d901345c18ec9689fd33eaf0a9760.tar.gz gitea-bae1d655640d901345c18ec9689fd33eaf0a9760.zip |
bugfix: Unable to assign any issue myself
Diffstat (limited to 'models/issue.go')
-rw-r--r-- | models/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/issue.go b/models/issue.go index 8004647c72..c756e49759 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 } |