aboutsummaryrefslogtreecommitdiffstats
path: root/models/issue.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-06-27 21:27:12 -0400
committerLunny Xiao <xiaolunwen@gmail.com>2017-06-28 09:27:12 +0800
commit80707c47365648aa9bc4c61ddf4cae8b165bdf48 (patch)
treee7ca23254e75bf90ac6f4eb984062743c45cd3aa /models/issue.go
parent5db8cf3bd1505c5c829de2a928d35ea19808b6c2 (diff)
downloadgitea-80707c47365648aa9bc4c61ddf4cae8b165bdf48.tar.gz
gitea-80707c47365648aa9bc4c61ddf4cae8b165bdf48.zip
Fix default ghost assignee bug (#2069)
Diffstat (limited to 'models/issue.go')
-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