forked from forgejo/forgejo
Finish issue assignee
This commit is contained in:
parent
a196245a87
commit
68fb62347f
6 changed files with 56 additions and 23 deletions
|
@ -349,8 +349,12 @@ func UpdateIssueUserPairByAssignee(aid, iid int64) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// Assignee ID equals to 0 means clear assignee.
|
||||
if aid == 0 {
|
||||
return nil
|
||||
}
|
||||
rawSql = "UPDATE `issue_user` SET is_assigned = true WHERE uid = ? AND issue_id = ?"
|
||||
_, err := orm.Exec(rawSql, true, aid, iid)
|
||||
_, err := orm.Exec(rawSql, aid, iid)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue