mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-22 03:32:08 +02:00
Fix on issue list clear project issue
This commit is contained in:
parent
4c72c32f9b
commit
ec78073456
@ -138,6 +138,9 @@ func IssueAssignOrRemoveProject(ctx context.Context, issue *Issue, doer *user_mo
|
||||
pi := make([]*project_model.ProjectIssue, 0, len(newProjectIDs))
|
||||
|
||||
for _, pID := range newProjectIDs {
|
||||
if pID == 0 {
|
||||
continue
|
||||
}
|
||||
newProject, err := project_model.GetProjectByID(ctx, pID)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Loading…
x
Reference in New Issue
Block a user