Fix unnecessary comment when moving an issue to the same column

pull/30205/head
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
1 changed files with 4 additions and 0 deletions

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