mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 08:04:21 +00:00
Backport #25665 by @Zettat123 Fixes #25649 Caused by #25468 Co-authored-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
parent
39fce5750d
commit
5510ed34f1
|
@ -436,9 +436,11 @@ func UpdateIssueProject(ctx *context.Context) {
|
||||||
|
|
||||||
projectID := ctx.FormInt64("id")
|
projectID := ctx.FormInt64("id")
|
||||||
for _, issue := range issues {
|
for _, issue := range issues {
|
||||||
oldProjectID := issue.Project.ID
|
if issue.Project != nil {
|
||||||
if oldProjectID == projectID {
|
oldProjectID := issue.Project.ID
|
||||||
continue
|
if oldProjectID == projectID {
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil {
|
if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil {
|
||||||
|
|
|
@ -385,9 +385,11 @@ func UpdateIssueProject(ctx *context.Context) {
|
||||||
|
|
||||||
projectID := ctx.FormInt64("id")
|
projectID := ctx.FormInt64("id")
|
||||||
for _, issue := range issues {
|
for _, issue := range issues {
|
||||||
oldProjectID := issue.Project.ID
|
if issue.Project != nil {
|
||||||
if oldProjectID == projectID {
|
oldProjectID := issue.Project.ID
|
||||||
continue
|
if oldProjectID == projectID {
|
||||||
|
continue
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil {
|
if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil {
|
||||||
|
|
Loading…
Reference in a new issue