1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-21 08:31:27 -05: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.

(cherry picked from commit db899c19d8)
This commit is contained in:
Earl Warren 2024-11-07 10:38:01 +01:00 committed by forgejo-backport-action
parent ed2d5f6b73
commit bcb72df356

View file

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