mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) (#2499)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
		
				
					committed by
					
						
						Thomas Boerger
					
				
			
			
				
	
			
			
			
						parent
						
							35b473d8d3
						
					
				
				
					commit
					633de01cf7
				
			@@ -41,7 +41,7 @@ func AddTimeManually(c *context.Context, form auth.AddTimeManuallyForm) {
 | 
				
			|||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if _, err := models.AddTime(c.User, issue, int64(total)); err != nil {
 | 
						if _, err := models.AddTime(c.User, issue, int64(total.Seconds())); err != nil {
 | 
				
			||||||
		c.Handle(http.StatusInternalServerError, "AddTime", err)
 | 
							c.Handle(http.StatusInternalServerError, "AddTime", err)
 | 
				
			||||||
		return
 | 
							return
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user