Fix track time issue id (#36664)

This commit is contained in:
Lunny Xiao
2026-02-20 13:48:54 -08:00
committed by GitHub
parent aedc564308
commit 5ad87616c9
6 changed files with 44 additions and 6 deletions
+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)