mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 21:24:10 +01:00
fix: issue labels are not set after deleting one label
Because issue.isLabelsLoaded = false is missing, LoadLabels is a noop and the issue.Labels is nil.
This commit is contained in:
parent
c801838690
commit
db899c19d8
1 changed files with 1 additions and 0 deletions
|
@ -205,6 +205,7 @@ func DeleteIssueLabel(ctx context.Context, issue *Issue, label *Label, doer *use
|
|||
return err
|
||||
}
|
||||
|
||||
issue.isLabelsLoaded = false
|
||||
issue.Labels = nil
|
||||
return issue.LoadLabels(ctx)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue