1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

Fix default ghost assignee bug (#2069)

This commit is contained in:
Ethan Koenig 2017-06-27 21:27:12 -04:00 committed by Lunny Xiao
parent 5db8cf3bd1
commit 80707c4736

View File

@ -132,7 +132,7 @@ func (issue *Issue) loadPoster(e Engine) (err error) {
}
func (issue *Issue) loadAssignee(e Engine) (err error) {
if issue.Assignee == nil {
if issue.Assignee == nil && issue.AssigneeID > 0 {
issue.Assignee, err = getUserByID(e, issue.AssigneeID)
if err != nil {
issue.AssigneeID = -1