mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Move milestone to models/issues/ (#19278)
* Move milestone to models/issues/ * Fix lint * Fix test * Fix lint * Fix lint
This commit is contained in:
		@@ -29,7 +29,7 @@ func AddDependency(ctx *context.Context) {
 | 
			
		||||
 | 
			
		||||
	depID := ctx.FormInt64("newDependency")
 | 
			
		||||
 | 
			
		||||
	if err = issue.LoadRepo(); err != nil {
 | 
			
		||||
	if err = issue.LoadRepo(ctx); err != nil {
 | 
			
		||||
		ctx.ServerError("LoadRepo", err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
@@ -88,7 +88,7 @@ func RemoveDependency(ctx *context.Context) {
 | 
			
		||||
 | 
			
		||||
	depID := ctx.FormInt64("removeDependencyID")
 | 
			
		||||
 | 
			
		||||
	if err = issue.LoadRepo(); err != nil {
 | 
			
		||||
	if err = issue.LoadRepo(ctx); err != nil {
 | 
			
		||||
		ctx.ServerError("LoadRepo", err)
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user