Skip to content

Commit

Permalink
Fix default ghost assignee bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig committed Jun 28, 2017
1 parent 5db8cf3 commit f2e278c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2e278c

Please sign in to comment.