From b1fec7ad3f2e18796999bd7a94bc8ce082b01adf Mon Sep 17 00:00:00 2001 From: tidusjar Date: Mon, 8 Mar 2021 09:01:02 +0000 Subject: [PATCH] Fixed where you could not delete issues --- src/Ombi/ClientApp/src/index.html | 1 + src/Ombi/Controllers/V1/IssuesController.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Ombi/ClientApp/src/index.html b/src/Ombi/ClientApp/src/index.html index 4d077697d..289926e33 100644 --- a/src/Ombi/ClientApp/src/index.html +++ b/src/Ombi/ClientApp/src/index.html @@ -8,6 +8,7 @@ background-color: white !important; } + diff --git a/src/Ombi/Controllers/V1/IssuesController.cs b/src/Ombi/Controllers/V1/IssuesController.cs index d75389c3a..a7e4b42a7 100644 --- a/src/Ombi/Controllers/V1/IssuesController.cs +++ b/src/Ombi/Controllers/V1/IssuesController.cs @@ -278,7 +278,7 @@ namespace Ombi.Controllers.V1 [PowerUser] public async Task DeleteIssue(int id) { - var issue = await _issues.GetAll().FirstOrDefaultAsync(x => x.Id == id); + var issue = await _issues.GetAll().Include(x => x.Comments).FirstOrDefaultAsync(x => x.Id == id); await _issues.Delete(issue); return true;