mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-26 23:35:51 +03:00
Fix default ghost assignee bug (#2069)
This commit is contained in:
parent
5db8cf3bd1
commit
80707c4736
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ func (issue *Issue) loadPoster(e Engine) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (issue *Issue) loadAssignee(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)
|
issue.Assignee, err = getUserByID(e, issue.AssigneeID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
issue.AssigneeID = -1
|
issue.AssigneeID = -1
|
||||||
|
|
Loading…
Reference in a new issue