0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-02-25 08:06:11 +01:00

Fix unnecessary comment when moving an issue to the same column

This commit is contained in:
Lunny Xiao 2025-11-04 15:03:22 -08:00
parent be143bdd6e
commit 883718e059
No known key found for this signature in database
GPG Key ID: C3B7C91B632F738A

View File

@ -223,6 +223,10 @@ func MoveIssueToAnotherColumn(ctx context.Context, doer *user_model.User, issue
if err != nil {
return err
}
if oldColumnID == newColumn.ID {
return nil
}
if err := db.WithTx(ctx, func(ctx context.Context) error {
if _, err := db.GetEngine(ctx).Exec("UPDATE `project_issue` SET project_board_id=? WHERE issue_id=?", newColumn.ID, issue.ID); err != nil {
return err