Browse Source

Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) (#2499)

Signed-off-by: Jonas Franz <info@jonasfranz.software>
tags/v1.3.0-rc1
Jonas Franz Thomas Boerger 8 years ago
parent
commit
ab43d2f9ca
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/issue_timetrack.go

+ 1
- 1
routers/repo/issue_timetrack.go View File

@@ -41,7 +41,7 @@ func AddTimeManually(c *context.Context, form auth.AddTimeManuallyForm) {
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)
return
}


Loading…
Cancel
Save