Fix track time issue id (#36664)

This commit is contained in:
Lunny Xiao authored and GitHub committed 2026-02-20 21:48:54 +00:00
1 parent aedc564308
commit 5ad87616c9
6 files changed
+44 -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)