Fixes #25649
Caused by #25468
projectID := ctx.FormInt64("id")
for _, issue := range issues {
- oldProjectID := issue.Project.ID
- if oldProjectID == projectID {
- continue
+ if issue.Project != nil {
+ oldProjectID := issue.Project.ID
+ if oldProjectID == projectID {
+ continue
+ }
}
if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil {
projectID := ctx.FormInt64("id")
for _, issue := range issues {
- oldProjectID := issue.Project.ID
- if oldProjectID == projectID {
- continue
+ if issue.Project != nil {
+ oldProjectID := issue.Project.ID
+ if oldProjectID == projectID {
+ continue
+ }
}
if err := issues_model.ChangeProjectAssign(issue, ctx.Doer, projectID); err != nil {