fix(project): prevent database mutations on invalid MoveIssues payload (#38600) (#38602)

Backport #38600

Signed-off-by: Sudhanshu Singh <sudhanshuwriterblc@gmail.com>
Co-authored-by: Shudhanshu Singh <sudhanshuwriterblc@gmail.com>
This commit is contained in:
GiteabotandShudhanshu Singh authored and GitHub committed 2026-07-23 16:14:57 +00:00
1 parent 483fb19b37
commit 4780cffe08
1 file changed
+1
+1
View File
@@ -742,6 +742,7 @@ func MoveIssues(ctx *context.Context) {
form := &movedIssuesForm{}
if err = json.NewDecoder(ctx.Req.Body).Decode(&form); err != nil {
ctx.ServerError("DecodeMovedIssuesForm", err)
return
}
issueIDs := make([]int64, 0, len(form.Issues))