Fix the display of project type for deleted projects (#31732) (#31734)

Backport #31732 by @yp05327

Fix: #31727
After:

![image](https://github.com/user-attachments/assets/1dfb4b31-3bd6-47f7-b126-650f33f453e2)

Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
Giteabot
2024-07-30 14:05:14 +08:00
committed by GitHub
parent ec467c344f
commit 8591c918f6
4 changed files with 19 additions and 5 deletions

View File

@@ -1669,7 +1669,7 @@ func ViewIssue(ctx *context.Context) {
}
ghostProject := &project_model.Project{
ID: -1,
ID: project_model.GhostProjectID,
Title: ctx.Locale.TrString("repo.issues.deleted_project"),
}