From db899c19d88866df984d27cac70b7d63a9fc5a6c Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 7 Nov 2024 10:38:01 +0100 Subject: [PATCH] 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. --- models/issues/issue_label.go | 1 + 1 file changed, 1 insertion(+) diff --git a/models/issues/issue_label.go b/models/issues/issue_label.go index 2f0e2897a9..90e7f9c625 100644 --- a/models/issues/issue_label.go +++ b/models/issues/issue_label.go @@ -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) }