From 349865162b06f8f0f7bfbdc289bd3f96912965e3 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 2 Mar 2022 18:57:19 +0100 Subject: [PATCH] backport fix of #18973 --- models/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo.go b/models/repo.go index 933bb6c2a73d..d637b880838e 100644 --- a/models/repo.go +++ b/models/repo.go @@ -977,7 +977,7 @@ func DeleteRepository(doer *user_model.User, uid, repoID int64) error { // Remove attachment with no issue_id and release_id. for i := range newAttachmentPaths { - admin_model.RemoveStorageWithNotice(db.DefaultContext, storage.Attachments, "Delete issue attachment", attachmentPaths[i]) + admin_model.RemoveStorageWithNotice(db.DefaultContext, storage.Attachments, "Delete issue attachment", newAttachmentPaths[i]) } if len(repo.Avatar) > 0 {