mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 14:57:24 -04:00 
			
		
		
		
	Backport #25665 by @Zettat123 Fixes #25649 Caused by #25468 Co-authored-by: Zettat123 <zettat123@gmail.com>
This commit is contained in:
		| @@ -436,10 +436,12 @@ func UpdateIssueProject(ctx *context.Context) { | |||||||
|  |  | ||||||
| 	projectID := ctx.FormInt64("id") | 	projectID := ctx.FormInt64("id") | ||||||
| 	for _, issue := range issues { | 	for _, issue := range issues { | ||||||
|  | 		if issue.Project != nil { | ||||||
| 			oldProjectID := issue.Project.ID | 			oldProjectID := issue.Project.ID | ||||||
| 			if oldProjectID == projectID { | 			if oldProjectID == projectID { | ||||||
| 				continue | 				continue | ||||||
| 			} | 			} | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil { | 		if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil { | ||||||
| 			ctx.ServerError("ChangeProjectAssign", err) | 			ctx.ServerError("ChangeProjectAssign", err) | ||||||
|   | |||||||
| @@ -385,10 +385,12 @@ func UpdateIssueProject(ctx *context.Context) { | |||||||
|  |  | ||||||
| 	projectID := ctx.FormInt64("id") | 	projectID := ctx.FormInt64("id") | ||||||
| 	for _, issue := range issues { | 	for _, issue := range issues { | ||||||
|  | 		if issue.Project != nil { | ||||||
| 			oldProjectID := issue.Project.ID | 			oldProjectID := issue.Project.ID | ||||||
| 			if oldProjectID == projectID { | 			if oldProjectID == projectID { | ||||||
| 				continue | 				continue | ||||||
| 			} | 			} | ||||||
|  | 		} | ||||||
|  |  | ||||||
| 		if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil { | 		if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil { | ||||||
| 			ctx.ServerError("ChangeProjectAssign", err) | 			ctx.ServerError("ChangeProjectAssign", err) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user