diff options
author | 6543 | 2022-03-02 20:42:02 +0100 |
---|---|---|
committer | GitHub | 2022-03-02 19:42:02 +0000 |
commit | 4317806ade1b206056b5f4c375570e3307cf1aad (patch) | |
tree | 69fd01228e822c6e25655fa412fe777ee4438fe6 | |
parent | 578f19a68242e90f539604d09a6329d253882c96 (diff) |
backport fix of #18973 (#18974)
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go index 933bb6c2a..d637b8808 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 { |