mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-24 17:14:30 +02:00 
			
		
		
		
	make sure labels are actually returned (#6053)
This commit is contained in:
		
							parent
							
								
									23414ac2a1
								
							
						
					
					
						commit
						f2256d9881
					
				| @ -51,6 +51,11 @@ func ListIssueLabels(ctx *context.APIContext) { | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	if err := issue.LoadAttributes(); err != nil { | ||||
| 		ctx.Error(500, "LoadAttributes", err) | ||||
| 		return | ||||
| 	} | ||||
| 
 | ||||
| 	apiLabels := make([]*api.Label, len(issue.Labels)) | ||||
| 	for i := range issue.Labels { | ||||
| 		apiLabels[i] = issue.Labels[i].APIFormat() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user