aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--models/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue.go b/models/issue.go
index e2e53b06fa..db05a7d45c 100644
--- a/models/issue.go
+++ b/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