Skip to content

Commit 883718e

Browse files
committed
Fix unnecessary comment when moving an issue to the same column
1 parent be143bd commit 883718e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

services/projects/issue.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,10 @@ func MoveIssueToAnotherColumn(ctx context.Context, doer *user_model.User, issue
223223
if err != nil {
224224
return err
225225
}
226+
if oldColumnID == newColumn.ID {
227+
return nil
228+
}
229+
226230
if err := db.WithTx(ctx, func(ctx context.Context) error {
227231
if _, err := db.GetEngine(ctx).Exec("UPDATE `project_issue` SET project_board_id=? WHERE issue_id=?", newColumn.ID, issue.ID); err != nil {
228232
return err

0 commit comments

Comments
 (0)