Skip to content

Commit

Permalink
Fix duplicate issues in default boards
Browse files Browse the repository at this point in the history
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 <david.edler@canonical.com>
  • Loading branch information
edlerd committed Oct 20, 2023
1 parent 6c501b1 commit c1afe0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/issues/issue_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c1afe0e

Please sign in to comment.