Fixed where you could not delete issues

pull/4098/head v4.0.1151
tidusjar 4 years ago
parent 6fda24c98a
commit b1fec7ad3f

@ -8,6 +8,7 @@
background-color: white !important;
}
</style>
<base href="/">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
<link href="styles/please-wait.css" rel="stylesheet">

@ -278,7 +278,7 @@ namespace Ombi.Controllers.V1
[PowerUser]
public async Task<bool> 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;

Loading…
Cancel
Save