mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Avoid setting missing label/milestone/assignee ids
Label, milestone, assignee ids are not includes in post request, possible js or form building bug.
This commit is contained in:
		| @@ -463,9 +463,9 @@ func UpdateIssue(ctx *middleware.Context, form auth.CreateIssueForm) { | ||||
| 	} | ||||
|  | ||||
| 	issue.Name = form.IssueName | ||||
| 	issue.MilestoneId = form.MilestoneId | ||||
| 	issue.AssigneeId = form.AssigneeId | ||||
| 	issue.LabelIds = form.Labels | ||||
| 	//issue.MilestoneId = form.MilestoneId | ||||
| 	//issue.AssigneeId = form.AssigneeId | ||||
| 	//issue.LabelIds = form.Labels | ||||
| 	issue.Content = form.Content | ||||
| 	// try get content from text, ignore conflict with preview ajax | ||||
| 	if form.Content == "" { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user