diff options
author | 6543 <6543@obermui.de> | 2023-09-29 14:04:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-29 13:04:14 +0000 |
commit | 2a2b0cb1d2f7de9dcdb8e84250bfb9ef501fd748 (patch) | |
tree | 1c5d051eb9c7a3472ad00ab79d9674d5c4f5f57b /routers | |
parent | cf0df023be06c8acec4fc8fb05eab1d1c2e52fd1 (diff) | |
download | gitea-2a2b0cb1d2f7de9dcdb8e84250bfb9ef501fd748.tar.gz gitea-2a2b0cb1d2f7de9dcdb8e84250bfb9ef501fd748.zip |
rename TotalTimes() to TotalTimesForEachUser() (#27261)
make function name more descriptive as it would otherwise imply it could
be used for e.g. #26672 too ...
---
*Sponsored by Kithara Software GmbH*
Diffstat (limited to 'routers')
-rw-r--r-- | routers/web/repo/issue.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go index b33c9f9727..090d23301b 100644 --- a/routers/web/repo/issue.go +++ b/routers/web/repo/issue.go @@ -1549,8 +1549,8 @@ func ViewIssue(ctx *context.Context) { } else { ctx.Data["CanUseTimetracker"] = false } - if ctx.Data["WorkingUsers"], err = issues_model.TotalTimes(&issues_model.FindTrackedTimesOptions{IssueID: issue.ID}); err != nil { - ctx.ServerError("TotalTimes", err) + if ctx.Data["WorkingUsers"], err = issues_model.TotalTimesForEachUser(&issues_model.FindTrackedTimesOptions{IssueID: issue.ID}); err != nil { + ctx.ServerError("TotalTimesForEachUser", err) return } } |