From c1afe0e39495ae0b5d4cebefc8e664e3d3580434 Mon Sep 17 00:00:00 2001 From: David Edler Date: Tue, 17 Oct 2023 11:29:28 +0200 Subject: [PATCH] Fix duplicate issues in default boards User reported in #27639 that the same issue appears twice on their board. This fixes the source of duplication. Fixes #27639 Signed-off-by: David Edler --- models/issues/issue_project.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/issues/issue_project.go b/models/issues/issue_project.go index 7906c3eace72..f1f9bb790836 100644 --- a/models/issues/issue_project.go +++ b/models/issues/issue_project.go @@ -51,7 +51,7 @@ func (issue *Issue) ProjectBoardID(ctx context.Context) int64 { func LoadIssuesFromBoard(ctx context.Context, b *project_model.Board) (IssueList, error) { issueList := make(IssueList, 0, 10) - if b.ID != 0 { + if b.ID > 0 { issues, err := Issues(ctx, &IssuesOptions{ ProjectBoardID: b.ID, ProjectID: b.ProjectID,