Fix default ghost assignee bug (#2069)

tokarchuk/v1.17
Ethan Koenig 7 years ago committed by Lunny Xiao
parent 5db8cf3bd1
commit 80707c4736
  1. 2
      models/issue.go

@ -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

Loading…
Cancel
Save