Fix track time issue id (#36664) (#36689)

Backport #36664 by @lunny

---------

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
GiteabotandLunny Xiao authored and GitHub committed 2026-02-21 00:26:56 +00:00
1 parent 0b2f7575e7
commit 8051056075
6 files changed
+46 -6

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ func DeleteTime(c *context.Context) {
return
}
t, err := issues_model.GetTrackedTimeByID(c, c.PathParamInt64("timeid"))
t, err := issues_model.GetTrackedTimeByID(c, issue.ID, c.PathParamInt64("timeid"))
if err != nil {
if db.IsErrNotExist(err) {
c.NotFound(err)