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
@@ -356,7 +356,7 @@ func DeleteTime(ctx *context.APIContext) {
return
}
time, err := issues_model.GetTrackedTimeByID(ctx, ctx.PathParamInt64("id"))
time, err := issues_model.GetTrackedTimeByID(ctx, issue.ID, ctx.PathParamInt64("id"))
if err != nil {
if db.IsErrNotExist(err) {
ctx.APIErrorNotFound(err)