Skip to content

Commit c1afe0e

Browse files
committed
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 <[email protected]>
1 parent 6c501b1 commit c1afe0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/issues/issue_project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func (issue *Issue) ProjectBoardID(ctx context.Context) int64 {
5151
func LoadIssuesFromBoard(ctx context.Context, b *project_model.Board) (IssueList, error) {
5252
issueList := make(IssueList, 0, 10)
5353

54-
if b.ID != 0 {
54+
if b.ID > 0 {
5555
issues, err := Issues(ctx, &IssuesOptions{
5656
ProjectBoardID: b.ID,
5757
ProjectID: b.ProjectID,

0 commit comments

Comments
 (0)