0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-20 21:18:30 +02:00

Fix board column move issue

This commit is contained in:
Tyrone Yeh 2025-05-07 10:41:18 +08:00
parent d48061bb19
commit 3a2ffcbc97
No known key found for this signature in database
GPG Key ID: AC8B5AA00375E170

View File

@ -77,7 +77,7 @@ func MoveIssuesOnProjectColumn(ctx context.Context, doer *user_model.User, colum
}
}
_, err = db.Exec(ctx, "UPDATE `project_issue` SET project_board_id=?, sorting=? WHERE issue_id=?", column.ID, sorting, issueID)
_, err = db.Exec(ctx, "UPDATE `project_issue` SET project_board_id=?, sorting=? WHERE issue_id=? AND project_id=?", column.ID, sorting, issueID, column.ProjectID)
if err != nil {
return err
}